diff options
author | Giel van Schijndel <me@mortis.eu> | 2010-03-29 15:12:09 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2010-04-03 18:53:46 -0400 |
commit | cf9cf9aed19f529ff313c3e0901ae3b2972eaf4e (patch) | |
tree | 8cd7af12d94e50094cdd97ca63644a2dad3abbe7 /Documentation/watchdog/src | |
parent | 5e8037166497f8a1aa46325ed7febf0408d45caa (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>
Diffstat (limited to 'Documentation/watchdog/src')
-rw-r--r-- | Documentation/watchdog/src/watchdog-simple.c | 3 |
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); |