summaryrefslogtreecommitdiff
path: root/Documentation/watchdog
diff options
context:
space:
mode:
authorGiel van Schijndel <me@mortis.eu>2010-03-29 21:12:09 +0200
committerWim Van Sebroeck <wim@iguana.be>2010-04-03 22:53:46 +0000
commitcf9cf9aed19f529ff313c3e0901ae3b2972eaf4e (patch)
tree8cd7af12d94e50094cdd97ca63644a2dad3abbe7 /Documentation/watchdog
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>
Diffstat (limited to 'Documentation/watchdog')
-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)
ret = -1;
break;
}
- ret = fsync(fd);
- if (ret)
- break;
sleep(10);
}
close(fd);