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-Tag: v2.6.34-rc4~62^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=cf9cf9aed19f529ff313c3e0901ae3b2972eaf4e;p=~shefty%2Frdma-dev.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 4cf72f3fa8e..ba45803a221 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);