aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiel van Schijndel <me@mortis.eu>2010-03-29 15:12:09 -0400
committerWim Van Sebroeck <wim@iguana.be>2010-04-03 18:53:46 -0400
commitcf9cf9aed19f529ff313c3e0901ae3b2972eaf4e (patch)
tree8cd7af12d94e50094cdd97ca63644a2dad3abbe7
parent5e8037166497f8a1aa46325ed7febf0408d45caa (diff)
[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>
-rw-r--r--Documentation/watchdog/src/watchdog-simple.c3
1 files changed, 0 insertions, 3 deletions
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)
17 ret = -1; 17 ret = -1;
18 break; 18 break;
19 } 19 }
20 ret = fsync(fd);
21 if (ret)
22 break;
23 sleep(10); 20 sleep(10);
24 } 21 }
25 close(fd); 22 close(fd);