projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
only build upgraded on mips
[project/procd.git]
/
watchdog.c
diff --git
a/watchdog.c
b/watchdog.c
index
de9556c
..
399f6af
100644
(file)
--- a/
watchdog.c
+++ b/
watchdog.c
@@
-119,3
+119,12
@@
void watchdog_init(int preinit)
DEBUG(4, "Opened watchdog with timeout %ds\n", watchdog_timeout(0));
}
+
+
+void watchdog_no_cloexec(void)
+{
+ if (wdt_fd < 0)
+ return;
+
+ fcntl(wdt_fd, F_SETFD, fcntl(wdt_fd, F_GETFD) & ~FD_CLOEXEC);
+}