mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 04:14:19 +00:00
watchfrr: Fail gracefully if fopen fails
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
116e176d99
commit
f5ba21fc9d
@ -596,7 +596,8 @@ static void daemon_send_ready(void)
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
||||||
fp = fopen(DAEMON_VTY_DIR "/watchfrr.started", "w");
|
fp = fopen(DAEMON_VTY_DIR "/watchfrr.started", "w");
|
||||||
fclose(fp);
|
if (fp)
|
||||||
|
fclose(fp);
|
||||||
#if defined HAVE_SYSTEMD
|
#if defined HAVE_SYSTEMD
|
||||||
zlog_notice(
|
zlog_notice(
|
||||||
"Watchfrr: Notifying Systemd we are up and running");
|
"Watchfrr: Notifying Systemd we are up and running");
|
||||||
|
Loading…
Reference in New Issue
Block a user