tools: return check (Coverity 1143220)

Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
paco 2018-06-13 18:07:36 +02:00
parent 558c7c80bf
commit 657f9948ed
No known key found for this signature in database
GPG Key ID: FD112A8C7E6A5E4A

View File

@ -1030,8 +1030,10 @@ int main(int argc, char **argv)
umask(022); /* set a default for dumb programs */
setpgid(0, 0); /* set the process group */
fd = open("/dev/null", O_RDWR); /* stdin */
dup(fd); /* stdout */
dup(fd); /* stderr */
if (fd >= 0) {
dup(fd); /* stdout */
dup(fd); /* stderr */
}
}
if (nicelevel) {
errno = 0;