From: greg@kroah.com Date: Tue, 30 Dec 2003 09:29:16 +0000 (-0800) Subject: [PATCH] move the signal handling registration to after we have initialized enough... X-Git-Tag: 012~16 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fd52a7694d94b57fc5a0dc380673a78683118fe;p=systemd [PATCH] move the signal handling registration to after we have initialized enough stuff. --- diff --git a/udev.c b/udev.c index 1d66410b..17eade22 100644 --- 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();