Hi Mike,

Mike Frysinger wrote:
When the reboot program runs, it sends SIGHUP right after SIGTERM, so we
need to handle it as well.

Also fix a few spelling errors.

Signed-off-by: Mike Frysinger <[EMAIL PROTECTED]>

Looks good, applied.

Thanks
Greg



 user/watchdogd/watchdogd.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/user/watchdogd/watchdogd.c b/user/watchdogd/watchdogd.c
index d25aa1e..4b0ed2a 100644
--- a/user/watchdogd/watchdogd.c
+++ b/user/watchdogd/watchdogd.c
@@ -98,7 +98,7 @@ static void usage(char *argv[])
 {
        printf(
                "%s [-f] [-w <sec>] [-k <sec>] [-s] [-h|--help]\n"
-               "A simple watchdog deamon that send WDIOC_KEEPALIVE ioctl every 
some\n"
+               "A simple watchdog daemon that send WDIOC_KEEPALIVE ioctl every 
some\n"
                "\"heartbeat of keepalives\" seconds.\n"
                "Options:\n"
                "\t-f        start in foreground (background is default)\n"
@@ -148,6 +148,7 @@ int main(int argc, char *argv[])
                } else if (strcmp(*av, "-s") == 0) {
                        printf("-s switch: safe exit (CTRL-C and kill).\n");
                        sa.sa_handler = safe_exit;
+                       sigaction(SIGHUP, &sa, NULL);
                        sigaction(SIGINT, &sa, NULL);
                        sigaction(SIGTERM, &sa, NULL);
                } else if (strcmp(*av, FOREGROUND_FLAG) == 0) {
@@ -164,7 +165,7 @@ int main(int argc, char *argv[])
        }
if (background) {
-               printf("Start in deamon mode.\n");
+               printf("Start in daemon mode.\n");
                vfork_daemon_rexec(1, 0, argc, argv, FOREGROUND_FLAG);
        }


--
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
SnapGear -- a Secure Computing Company      PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to