aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/id.c b/toys/posix/id.c
index 01610bcd..4b732b1b 100644
--- a/toys/posix/id.c
+++ b/toys/posix/id.c
@@ -73,7 +73,7 @@ static void s_or_u(char *s, unsigned u, int done)
else printf("%u", u);
if (done) {
xputc('\n');
- exit(0);
+ xexit();
}
}
@@ -143,7 +143,7 @@ static void do_id(char *username)
}
if (toys.optflags&FLAG_G) {
xputc('\n');
- exit(0);
+ xexit();
}
}