summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/udev.c b/udev.c
index 7809060520..d8cb4365fd 100644
--- a/udev.c
+++ b/udev.c
@@ -38,8 +38,6 @@
#include "namedev.h"
#include "udevdb.h"
-/* timeout flag for udevdb */
-extern sig_atomic_t gotalarm;
/* global variables */
char **main_argv;
@@ -64,8 +62,7 @@ static void asmlinkage sig_handler(int signum)
{
switch (signum) {
case SIGALRM:
- gotalarm = 1;
- break;
+ exit(1);
case SIGINT:
case SIGTERM:
exit(20 + signum);
@@ -153,10 +150,6 @@ int main(int argc, char *argv[], char *envp[])
/* trigger timout to interrupt blocking syscalls */
alarm(ALARM_TIMEOUT);
- /* initialize udev database */
- if (udevdb_init(UDEVDB_DEFAULT) != 0)
- info("error: unable to initialize database, continuing without database");
-
switch(act_type) {
case UDEVSTART:
dbg("udevstart");
@@ -196,8 +189,6 @@ int main(int argc, char *argv[], char *envp[])
dev_d_execute(&udev);
}
- udevdb_exit();
-
exit:
logging_close();
return retval;