diff options
author | Giel van Schijndel <me@mortis.eu> | 2010-03-29 23:12:09 +0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2010-04-04 02:53:46 +0400 |
commit | cf9cf9aed19f529ff313c3e0901ae3b2972eaf4e (patch) | |
tree | 8cd7af12d94e50094cdd97ca63644a2dad3abbe7 /Documentation | |
parent | 5e8037166497f8a1aa46325ed7febf0408d45caa (diff) | |
download | linux-cf9cf9aed19f529ff313c3e0901ae3b2972eaf4e.tar.xz |
[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')
-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) ret = -1; break; } - ret = fsync(fd); - if (ret) - break; sleep(10); } close(fd); |