mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 16:57:43 +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;
|
||||
|
||||
fp = fopen(DAEMON_VTY_DIR "/watchfrr.started", "w");
|
||||
fclose(fp);
|
||||
if (fp)
|
||||
fclose(fp);
|
||||
#if defined HAVE_SYSTEMD
|
||||
zlog_notice(
|
||||
"Watchfrr: Notifying Systemd we are up and running");
|
||||
|
Loading…
Reference in New Issue
Block a user