aboutsummaryrefslogtreecommitdiff
path: root/miscutils/watchdog.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
committerRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
commitce9af1cc5ea23f754587448cf35b5120c77bfeef (patch)
tree69e5eaba5e75ab909ed92d5045393471b8ff3c13 /miscutils/watchdog.c
parentc170026700eabb10147dd848c45c06995b43a32e (diff)
parente837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff)
downloadbusybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2
busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'miscutils/watchdog.c')
-rw-r--r--miscutils/watchdog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c
index ec06bcb51..392d05646 100644
--- a/miscutils/watchdog.c
+++ b/miscutils/watchdog.c
@@ -101,8 +101,9 @@ int watchdog_main(int argc UNUSED_PARAM, char **argv)
101 char *st_arg; 101 char *st_arg;
102 char *ht_arg; 102 char *ht_arg;
103 103
104 opt_complementary = "=1"; /* must have exactly 1 argument */ 104 opts = getopt32(argv, "^" "Ft:T:" "\0" "=1"/*must have exactly 1 arg*/,
105 opts = getopt32(argv, "Ft:T:", &st_arg, &ht_arg); 105 &st_arg, &ht_arg
106 );
106 107
107 /* We need to daemonize *before* opening the watchdog as many drivers 108 /* We need to daemonize *before* opening the watchdog as many drivers
108 * will only allow one process at a time to do so. Since daemonizing 109 * will only allow one process at a time to do so. Since daemonizing