diff options
author | Denis Vlasenko | 2008-11-09 00:15:11 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-11-09 00:15:11 +0000 |
commit | 3fa36e235021af5810333a52876d29efc661ad60 (patch) | |
tree | 71249d42a3a17ebf3c166826b71fe1453dcb6756 /networking | |
parent | 73cc54388daeae391698b8afe788f421cf9e394d (diff) | |
download | busybox-3fa36e235021af5810333a52876d29efc661ad60.zip busybox-3fa36e235021af5810333a52876d29efc661ad60.tar.gz |
*: a bit of code shrink
function old new delta
stop_handler 41 38 -3
sulogin_main 508 504 -4
got_cont 4 - -4
cont_handler 11 - -11
startservice 309 297 -12
processorstart 423 409 -14
tcpudpsvd_main 1861 1843 -18
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/5 up/down: 0/-66) Total: -66 bytes
Diffstat (limited to 'networking')
-rw-r--r-- | networking/nc.c | 3 | ||||
-rw-r--r-- | networking/tcpudp.c | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/networking/nc.c b/networking/nc.c index 1a99f91..fe845f5 100644 --- a/networking/nc.c +++ b/networking/nc.c @@ -131,7 +131,8 @@ int nc_main(int argc, char **argv) if (wsecs) { alarm(0); - signal(SIGALRM, SIG_DFL); + /* Non-ignored siganls revert to SIG_DFL on exec anyway */ + /*signal(SIGALRM, SIG_DFL);*/ } /* -e given? */ diff --git a/networking/tcpudp.c b/networking/tcpudp.c index 0d8217e..3b73f21 100644 --- a/networking/tcpudp.c +++ b/networking/tcpudp.c @@ -497,9 +497,9 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv) xdup2(0, 1); - signal(SIGTERM, SIG_DFL); - signal(SIGPIPE, SIG_DFL); - signal(SIGCHLD, SIG_DFL); + signal(SIGPIPE, SIG_DFL); /* this one was SIG_IGNed */ + /* Non-ignored signals revert to SIG_DFL on exec anyway */ + /*signal(SIGCHLD, SIG_DFL);*/ sig_unblock(SIGCHLD); #ifdef SSLSVD |