libbb: introduce bb_signals and bb_signals_recursive,
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 16 Feb 2008 22:58:56 +0000 (22:58 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 16 Feb 2008 22:58:56 +0000 (22:58 -0000)
commit25591c322c9305bd54d3ab80cfaf01ef87640d77
tree66ce77758e35f4faa2d5f611d0535365f2cba00a
parent7fc294cdfe1e7f4a12c44f984a698b0c0f609075
libbb: introduce bb_signals and bb_signals_recursive,
which sets same handler for many signals. sig_catch is nuked
(bb_signals_recursive is more descriptive name).
*: use them as appropriate.

function                                             old     new   delta
bb_signals_recursive                                   -      95     +95
bb_signals                                             -      52     +52
run_command                                          258     273     +15
svlogd_main                                         1368    1377      +9
runsv_main                                          1746    1752      +6
runsvdir_main                                       1643    1646      +3
UNSPEC_print                                          64      66      +2
time_main                                           1128    1127      -1
...
resize_main                                          246     210     -36
sig_catch                                             63       -     -63
set_fatal_sighandler                                  85      14     -71
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 5/24 up/down: 182/-548)        Total: -366 bytes
26 files changed:
console-tools/resize.c
coreutils/tee.c
include/libbb.h
init/init.c
libbb/Kbuild
libbb/signals.c [new file with mode: 0644]
libbb/xfuncs.c
loginutils/passwd.c
miscutils/less.c
miscutils/microcom.c
miscutils/time.c
miscutils/watchdog.c
networking/dnsd.c
networking/nc_bloaty.c
networking/sendmail.c
networking/slattach.c
networking/telnetd.c
networking/udhcp/signalpipe.c
procps/top.c
runit/runsv.c
runit/runsvdir.c
runit/svlogd.c
shell/hush.c
sysklogd/klogd.c
sysklogd/syslogd.c
util-linux/more.c