summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-12-30 01:29:16 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:12 -0700
commit3fd52a7694d94b57fc5a0dc380673a78683118fe (patch)
treec3f0f7d28486c7bd2ba0c4c37c438e3b33b9479c /udev.c
parentd12ecb53cf8c5955135b94e4b671ad28dfb3a7b4 (diff)
downloadsystemd-3fd52a7694d94b57fc5a0dc380673a78683118fe.tar.gz
[PATCH] move the signal handling registration to after we have initialized enough stuff.
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/udev.c b/udev.c
index 1d66410b6c..17eade221e 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();