]> err.no Git - systemd/commitdiff
[PATCH] move the signal handling registration to after we have initialized enough...
authorgreg@kroah.com <greg@kroah.com>
Tue, 30 Dec 2003 09:29:16 +0000 (01:29 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:12 +0000 (21:13 -0700)
udev.c

diff --git a/udev.c b/udev.c
index 1d66410b6c0085ba1c9c780497fb4f8f94b98bc1..17eade221ec867a8420c56bc77f6b28c9c5f8a44 100644 (file)
--- a/udev.c
+++ b/udev.c
@@ -88,10 +88,6 @@ int main(int argc, char **argv, char **envp)
        char *subsystem;
        int retval = -EINVAL;
 
-       signal(SIGINT, sig_handler);
-       signal(SIGTERM, sig_handler);
-       signal(SIGKILL, sig_handler);
-
        main_argv = argv;
        main_envp = envp;
 
@@ -143,6 +139,11 @@ int main(int argc, char **argv, char **envp)
                goto exit_sysbus;
        }
 
+       /* set up a default signal handler for now */
+       signal(SIGINT, sig_handler);
+       signal(SIGTERM, sig_handler);
+       signal(SIGKILL, sig_handler);
+
        /* initialize the naming deamon */
        namedev_init();