aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-09 00:15:11 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-09 00:15:11 +0000
commit3fa36e235021af5810333a52876d29efc661ad60 (patch)
tree71249d42a3a17ebf3c166826b71fe1453dcb6756 /runit
parent73cc54388daeae391698b8afe788f421cf9e394d (diff)
downloadbusybox-w32-3fa36e235021af5810333a52876d29efc661ad60.tar.gz
busybox-w32-3fa36e235021af5810333a52876d29efc661ad60.tar.bz2
busybox-w32-3fa36e235021af5810333a52876d29efc661ad60.zip
*: 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 'runit')
-rw-r--r--runit/runsv.c5
-rw-r--r--runit/svlogd.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/runit/runsv.c b/runit/runsv.c
index 56244d03f..123720864 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -336,10 +336,11 @@ static void startservice(struct svdir *s)
336 xdup2(logpipe.wr, 1); 336 xdup2(logpipe.wr, 1);
337 } 337 }
338 } 338 }
339 bb_signals(0 339 /* Non-ignored signals revert to SIG_DFL on exec anyway */
340 /*bb_signals(0
340 + (1 << SIGCHLD) 341 + (1 << SIGCHLD)
341 + (1 << SIGTERM) 342 + (1 << SIGTERM)
342 , SIG_DFL); 343 , SIG_DFL);*/
343 sig_unblock(SIGCHLD); 344 sig_unblock(SIGCHLD);
344 sig_unblock(SIGTERM); 345 sig_unblock(SIGTERM);
345 execvp(*run, run); 346 execvp(*run, run);
diff --git a/runit/svlogd.c b/runit/svlogd.c
index 64191281e..9beb9f53f 100644
--- a/runit/svlogd.c
+++ b/runit/svlogd.c
@@ -227,11 +227,12 @@ static void processorstart(struct logdir *ld)
227 int fd; 227 int fd;
228 228
229 /* child */ 229 /* child */
230 bb_signals(0 230 /* Non-ignored signals revert to SIG_DFL on exec anyway */
231 /*bb_signals(0
231 + (1 << SIGTERM) 232 + (1 << SIGTERM)
232 + (1 << SIGALRM) 233 + (1 << SIGALRM)
233 + (1 << SIGHUP) 234 + (1 << SIGHUP)
234 , SIG_DFL); 235 , SIG_DFL);*/
235 sig_unblock(SIGTERM); 236 sig_unblock(SIGTERM);
236 sig_unblock(SIGALRM); 237 sig_unblock(SIGALRM);
237 sig_unblock(SIGHUP); 238 sig_unblock(SIGHUP);