projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e80371
)
[WATCHDOG] doc: watchdog simple example: don't fail on fsync()
author
Giel van Schijndel
<me@mortis.eu>
Mon, 29 Mar 2010 19:12:09 +0000
(21:12 +0200)
committer
Wim Van Sebroeck
<wim@iguana.be>
Sat, 3 Apr 2010 22:53:46 +0000
(22:53 +0000)
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>
Documentation/watchdog/src/watchdog-simple.c
patch
|
blob
|
history
diff --git
a/Documentation/watchdog/src/watchdog-simple.c
b/Documentation/watchdog/src/watchdog-simple.c
index 4cf72f3fa8e91b1b725ba3e2af92dc68e4693394..ba45803a2216a88ff406aca0093c32c9d2d109eb 100644
(file)
--- 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);