sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit aa1a2391bae1c5e8e799934f0dbbd82b2cb694e8
parent fba669da88f34149b26be1c3cc5405773bc7b157
Author: FRIGN <dev@frign.de>
Date:   Mon Mar  9 00:25:54 +0100

Use idiomatic return in setsid(1)

Diffstat:
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); }