projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7071e52
)
[WATCHDOG] Documentation/watchdog/watchdog-api.txt - fix watchdog daemon
author
Randy Dunlap
<rdunlap@xenotime.net>
Wed, 5 Apr 2006 03:17:26 +0000
(20:17 -0700)
committer
Wim Van Sebroeck
<wim@iguana.be>
Mon, 15 May 2006 19:37:46 +0000
(21:37 +0200)
Fix the simple watchdog daemon program in Doc/watchdog/watchdog-api.txt
to build cleanly.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Documentation/watchdog/watchdog-api.txt
patch
|
blob
|
blame
|
history
diff --git
a/Documentation/watchdog/watchdog-api.txt
b/Documentation/watchdog/watchdog-api.txt
index c5beb548cfc42b781fd825ff9345f411f087897d..21ed5117366240d2a33af5af7f5605733bd514c1 100644
(file)
--- a/
Documentation/watchdog/watchdog-api.txt
+++ b/
Documentation/watchdog/watchdog-api.txt
@@
-36,6
+36,9
@@
timeout or margin. The simplest way to ping the watchdog is to write
some data to the device. So a very simple watchdog daemon would look
like this:
+#include <stdlib.h>
+#include <fcntl.h>
+
int main(int argc, const char *argv[]) {
int fd=open("/dev/watchdog",O_WRONLY);
if (fd==-1) {