only write to the watchdog if the fd is valid
authorJohn Crispin <blogic@openwrt.org>
Sun, 14 Dec 2014 21:12:45 +0000 (22:12 +0100)
committerJohn Crispin <blogic@openwrt.org>
Sun, 14 Dec 2014 21:28:55 +0000 (22:28 +0100)
commit61cfe0d093056b85a311f06d44ac149e5dbb4d1a
tree74e598edf06f0e3dfc6380775ee5ea1e6ecd7105
parent40c4e68266a7b04239394c528c4c290d960fc38c
only write to the watchdog if the fd is valid

Signed-off-by: John Crispin <blogic@openwrt.org>
watchdog.c