diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/sd-network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/sd-network.c b/src/network/sd-network.c index 23af940903..3b541a2764 100644 --- a/src/network/sd-network.c +++ b/src/network/sd-network.c @@ -169,7 +169,7 @@ _public_ int sd_network_monitor_new(const char *category, sd_network_monitor **m if (!category || streq(category, "netif")) { k = inotify_add_watch(fd, "/run/systemd/network/links/", IN_MOVED_TO|IN_DELETE); if (k < 0) { - close_nointr_nofail(fd); + safe_close(fd); return -errno; } |