From: Giel van Schijndel Date: Mon, 29 Mar 2010 19:12:09 +0000 (+0200) Subject: [WATCHDOG] doc: watchdog simple example: don't fail on fsync() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=cf9cf9aed19f529ff313c3e0901ae3b2972eaf4e;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Wim Van Sebroeck --- diff --git a/Documentation/watchdog/src/watchdog-simple.c b/Documentation/watchdog/src/watchdog-simple.c index 4cf72f3fa8e9..ba45803a2216 100644 --- a/Documentation/watchdog/src/watchdog-simple.c +++ b/Documentation/watchdog/src/watchdog-simple.c @@ -17,9 +17,6 @@ int main(void) ret = -1; break; } - ret = fsync(fd); - if (ret) - break; sleep(10); } close(fd);