]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/watchdog: close watchdog device when done with it 13368/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Aug 2019 18:24:47 +0000 (20:24 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Aug 2019 19:15:13 +0000 (21:15 +0200)
commit1fedf13839a2be4788bf99ae2073381cdadf5eb3
treef87dd6b14592d7be126ce737cd365a8eb2f1e70d
parentba903882212829d32e2c9458633c4427297c8407
shared/watchdog: close watchdog device when done with it

The file descriptor was opened with O_CLOEXEC, so in practice this doesn't
change too much, but it seems cleaner to always close the old fd when
changing the device path.
src/shared/watchdog.c