aboutsummaryrefslogtreecommitdiff
path: root/miscutils/devfsd.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-03-12 23:13:50 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-03-12 23:13:50 +0000
commit4cf1d08fc2e50f9abda999d468c5e972ff4995c2 (patch)
tree58dd8efdd7d0f0990d30d8b5f5f53cf2ee35d444 /miscutils/devfsd.c
parent4e6d5117b839cef41cd3919966f95bf25d24d8d9 (diff)
downloadbusybox-w32-4cf1d08fc2e50f9abda999d468c5e972ff4995c2.tar.gz
busybox-w32-4cf1d08fc2e50f9abda999d468c5e972ff4995c2.tar.bz2
busybox-w32-4cf1d08fc2e50f9abda999d468c5e972ff4995c2.zip
nc: remove a bit of bloat
inetd: more NOMMU fixes rx: shrink devfsd: minor shrink vlock: shrink tcpudp: narrow down window where we have no wildcard socket parse_one_line 1015 1102 +87 init_ring - 53 +53 xzalloc_lsa - 48 +48 read_byte 51 50 -1 rearm_alarm 28 25 -3 nc_main 1028 1000 -28 initring 53 - -53 vlock_main 583 496 -87 reread_config_file 1089 991 -98 rx_main 1046 912 -134 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/6 up/down: 188/-404) Total: -216 bytes text data bss dec hex filename 800120 661 7428 808209 c5511 busybox_old 799796 661 7428 807885 c53cd busybox_unstripped
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r--miscutils/devfsd.c9
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);