mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 10:54:47 +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 */
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user