commit aa1a2391bae1c5e8e799934f0dbbd82b2cb694e8 parent fba669da88f34149b26be1c3cc5405773bc7b157 Author: FRIGN <dev@frign.de> Date: Mon, 9 Mar 2015 00:25:54 +0100 Use idiomatic return in setsid(1) Diffstat:
M | setsid.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setsid.c b/setsid.c @@ -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); }