diff options
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r-- | miscutils/devfsd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index 286f00fd8..50c8203cb 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -386,15 +386,14 @@ int devfsd_main(int argc, char **argv) | |||
386 | /* Tell kernel we are special(i.e. we get to see hidden entries) */ | 386 | /* Tell kernel we are special(i.e. we get to see hidden entries) */ |
387 | xioctl(fd, DEVFSDIOC_SET_EVENT_MASK, 0); | 387 | xioctl(fd, DEVFSDIOC_SET_EVENT_MASK, 0); |
388 | 388 | ||
389 | /* Set up SIGHUP and SIGUSR1 handlers */ | ||
389 | sigemptyset(&new_action.sa_mask); | 390 | sigemptyset(&new_action.sa_mask); |
390 | new_action.sa_flags = 0; | 391 | new_action.sa_flags = 0; |
391 | |||
392 | /* Set up SIGHUP and SIGUSR1 handlers */ | ||
393 | new_action.sa_handler = signal_handler; | 392 | new_action.sa_handler = signal_handler; |
394 | if (sigaction(SIGHUP, &new_action, NULL) != 0 || sigaction(SIGUSR1, &new_action, NULL) != 0) | 393 | sigaction(SIGHUP, &new_action, NULL); |
395 | bb_error_msg_and_die("sigaction"); | 394 | sigaction(SIGUSR1, &new_action, NULL); |
396 | 395 | ||
397 | printf("%s v%s started for %s\n",applet_name, DEVFSD_VERSION, mount_point); | 396 | printf("%s v%s started for %s\n", applet_name, DEVFSD_VERSION, mount_point); |
398 | 397 | ||
399 | /* Set umask so that mknod(2), open(2) and mkdir(2) have complete control over permissions */ | 398 | /* Set umask so that mknod(2), open(2) and mkdir(2) have complete control over permissions */ |
400 | umask(0); | 399 | umask(0); |