1
0
mirror of git://git.suckless.org/sbase synced 2024-12-22 23:13:44 +00:00

Audit setsid(1)

Nothing special, just a small style-fix.
This commit is contained in:
FRIGN 2015-03-02 00:20:35 +01:00
parent 48696d8c95
commit 7afc84396a
2 changed files with 3 additions and 2 deletions

2
README
View File

@ -60,7 +60,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* rmdir yes none
# sed
seq non-posix none
=* setsid non-posix none
=*| setsid non-posix none
=*| sha1sum non-posix none
=*| sha256sum non-posix none
=*| sha512sum non-posix none

View File

@ -20,7 +20,7 @@ main(int argc, char *argv[])
usage();
} ARGEND;
if (argc < 1)
if (!argc)
usage();
if (getpgrp() == getpid()) {
@ -38,5 +38,6 @@ main(int argc, char *argv[])
execvp(argv[0], argv);
savederrno = errno;
weprintf("execvp %s:", argv[0]);
return (savederrno == ENOENT) ? 127 : 126;
}