git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[WATCHDOG] Documentation/watchdog/watchdog-api.txt - fix watchdog daemon
[pandora-kernel.git]
/
Documentation
/
watchdog
/
watchdog-api.txt
diff --git
a/Documentation/watchdog/watchdog-api.txt
b/Documentation/watchdog/watchdog-api.txt
index
c5beb54
..
21ed511
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) {