aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-07-23 18:25:38 -0500
committerRob Landley <rob@landley.net>2016-07-23 18:25:38 -0500
commit7918d9ff8c39b1acdfaffb93de7d337dd4faa9a8 (patch)
tree48be47e85fd3d0a2fa3303c775b4d76b1985c661 /toys
parent65c49620801594ad92f2956efdbee942dec707ce (diff)
downloadtoybox-7918d9ff8c39b1acdfaffb93de7d337dd4faa9a8.tar.gz
Usischev Yury pointed out that id shouldn't use exit() directly.
Diffstat (limited to 'toys')
-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();
}
}