From 7918d9ff8c39b1acdfaffb93de7d337dd4faa9a8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 23 Jul 2016 18:25:38 -0500 Subject: Usischev Yury pointed out that id shouldn't use exit() directly. --- toys/posix/id.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys') 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(); } } -- cgit v1.2.3