mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
tools: return check (Coverity 1143220)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
558c7c80bf
commit
657f9948ed
@ -1030,8 +1030,10 @@ int main(int argc, char **argv)
|
|||||||
umask(022); /* set a default for dumb programs */
|
umask(022); /* set a default for dumb programs */
|
||||||
setpgid(0, 0); /* set the process group */
|
setpgid(0, 0); /* set the process group */
|
||||||
fd = open("/dev/null", O_RDWR); /* stdin */
|
fd = open("/dev/null", O_RDWR); /* stdin */
|
||||||
dup(fd); /* stdout */
|
if (fd >= 0) {
|
||||||
dup(fd); /* stderr */
|
dup(fd); /* stdout */
|
||||||
|
dup(fd); /* stderr */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (nicelevel) {
|
if (nicelevel) {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user