mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge 31191e61c2
into 3dd4d417be
This commit is contained in:
commit
509fff6961
|
@ -1217,7 +1217,7 @@ void frr_run(struct event_loop *loop)
|
|||
daemon_ctl_sock, &daemon_ctl_thread);
|
||||
}
|
||||
} else if (di->daemon_mode) {
|
||||
int nullfd = open("/dev/null", O_RDONLY | O_NOCTTY);
|
||||
int nullfd = open("/dev/null", O_RDWR | O_NOCTTY);
|
||||
if (nullfd == -1) {
|
||||
flog_err_sys(EC_LIB_SYSTEM_CALL,
|
||||
"%s: failed to open /dev/null: %s",
|
||||
|
|
Loading…
Reference in a new issue