]> git.ipfire.org Git - thirdparty/systemd.git/commit
networkd: Don't try to close fd in sd_radv_stop if fd is closed.
authorSusant Sahani <susant@redhat.com>
Wed, 13 Jun 2018 13:52:34 +0000 (19:22 +0530)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 13 Jun 2018 15:14:47 +0000 (17:14 +0200)
commit6f8a8b84f28be7a6133bbde1479dee9abad6cee8
tree0cfc5fa6e9ccf24aece71eaa6c6ee4e1cbfb9a91
parentcb8770ed2137c509f2b73af33619fa0168d727e3
networkd: Don't try to close fd in sd_radv_stop if fd is closed.

sd_radv_stop is called from two places. if sd_radv_stop is alrady
success then just don't try to close it .
```
systemd-networkd[604]: RADV: Stopping IPv6 Router Advertisement daemon
systemd-networkd[604]: RADV: Unable to send last Router Advertisement with router lifetime set to zero: Bad file descriptor <==================HERE
systemd-networkd[604]: RADV: Updated prefix 2a0a:*:*:fc::/64 preferred 1h valid 2h
systemd-networkd[604]: RADV: Started IPv6 Router Advertisement daemon
```

Closes one of the issue #8960
src/libsystemd-network/sd-radv.c