[hackers] [sbase] Use idiomatic return in setsid(1) || FRIGN
commit aa1a2391bae1c5e8e799934f0dbbd82b2cb694e8
Author: FRIGN <dev_AT_frign.de>
Date: Mon Mar 9 00:25:54 2015 +0100
Use idiomatic return in setsid(1)
diff --git a/setsid.c b/setsid.c
index b666e33..73c2ae8 100644
--- a/setsid.c
+++ b/setsid.c
_AT_@ -39,5 +39,5 @@ main(int argc, char *argv[])
savederrno = errno;
weprintf("execvp %s:", argv[0]);
- return (savederrno == ENOENT) ? 127 : 126;
+ return 126 + (savederrno == ENOENT);
}
Received on Tue Mar 24 2015 - 23:54:12 CET
This archive was generated by hypermail 2.3.0
: Wed Mar 25 2015 - 00:11:26 CET