diff options
Diffstat (limited to 'udev.c')
-rw-r--r-- | udev.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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(); |