summaryrefslogtreecommitdiff
path: root/cmdtree.c
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-10-17 10:05:15 -0700
committerWilliam Casarin <jb55@jb55.com>2018-10-17 10:05:15 -0700
commitcda67fed1dee21f57f5b2d1741d40b8092b332a3 (patch)
tree51e32831a2969be98f7db21fa598853e090d8252 /cmdtree.c
parent7b58e2d992818de8248a108fadd88b1c37d0cfdb (diff)
properly propagate exit code
Diffstat (limited to 'cmdtree.c')
-rw-r--r--cmdtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdtree.c b/cmdtree.c
index a4b772b..308332b 100644
--- a/cmdtree.c
+++ b/cmdtree.c
@@ -299,7 +299,7 @@ draw_tree(Drw *drw, int x, int y, int w, int h) {
static void
cleanup(Drw *drw, int code) {
drw_free(drw);
- exit(0);
+ exit(code);
}
static void