Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[WATCHDOG] doc: watchdog simple example: don't fail on fsync()

Don't terminate the watchdog daemon when fsync() fails because no
watchdog driver actually implements the fsync() syscall.

Signed-off-by: Giel van Schijndel <me@mortis.eu>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Giel van Schijndel and committed by
Wim Van Sebroeck
cf9cf9ae 5e803716

-3
-3
Documentation/watchdog/src/watchdog-simple.c
··· 17 17 ret = -1; 18 18 break; 19 19 } 20 - ret = fsync(fd); 21 - if (ret) 22 - break; 23 20 sleep(10); 24 21 } 25 22 close(fd);