aboutsummaryrefslogtreecommitdiff
path: root/init (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* init,loginutils: termios portability fixesJeremie Koenig2010-07-191-1/+16
| | | | | Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mark Linux-specific configuration optionsJeremie Koenig2010-07-192-0/+3
| | | | | | | | PLATFORM_LINUX is used as a dependency for applets or features which require Linux-specific interfaces. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bootchartd: fix labels in config system. no code changesDenys Vlasenko2010-07-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use xfork() and xvfork()Pascal Bellard2010-07-041-3/+1
| | | | | | | | | | | | | | | | function old new delta launch_helper 170 169 -1 setup_heredoc 312 302 -10 handle_dir_common 367 354 -13 expand_vars_to_list 2456 2443 -13 open_transformer 89 74 -15 data_extract_to_command 439 423 -16 do_ipaddr 1406 1389 -17 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-85) Total: -85 bytes Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bootchartd: fix sample period calculationsKeisuke Yasui2010-06-281-5/+7
| | | | | Signed-off-by: Keisuke Yasui <keisuke.yasui@toshiba.co.jp> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* conspy: code shrinkPascal Bellard2010-06-281-16/+15
| | | | | | | | | | function old new delta conspy_main 1446 1444 -2 screen_read_close 114 108 -6 screen_char 299 293 -6 Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2010-06-221-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix config help textDenys Vlasenko2010-06-211-11/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bootchartd: added optional compat featuresDenys Vlasenko2010-06-212-43/+125
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add INSERTs to *.src files where appropriateDenys Vlasenko2010-06-082-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove defconfig. Now "make defconfig" simply uses defaults from Config.inDenys Vlasenko2010-06-061-11/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass renaming Kbuild -> Kbuild.src, Config.in -> Config.srcDenys Vlasenko2010-06-042-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: use CONFIG_FEATURE_EDITING_MAX_LENDenys Vlasenko2010-05-171-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bootchartd: better wording in commentDenys Vlasenko2010-05-051-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bootchartd: add missing parenthesisDenys Vlasenko2010-05-041-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bootchartd: new appletDenys Vlasenko2010-05-043-3/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | Usage: bootchartd start [PROG ARGS]|init|stop Create /var/log/bootchart.tgz with boot chart data Options: start: start background logging; with PROG, run PROG, then kill logging with USR1 stop: send USR1 to all bootchartd processes init: start background logging; stop when getty/gdm is seen (for init scripts) Under PID 1: as init, then exec $bootchart_init, /init, /sbin/init function old new delta bootchartd_main - 907 +907 dump_procs - 353 +353 packed_usage 26566 26735 +169 dump_file - 91 +91 static.dirs - 23 +23 applet_names 2176 2187 +11 applet_main 1284 1288 +4 applet_nameofs 642 644 +2 ------------------------------------------------------------------------------ (add/remove: 5/0 grow/shrink: 4/0 up/down: 1560/0) Total: 1560 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: add skip_dev_pfx()Denys Vlasenko2010-04-061-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: clear utmp entries for dead processes, if they (entries) existDenys Vlasenko2010-04-061-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnetd: write LOGIN/DEAD_PROCESS utmp records. Closes bug 1363Denys Vlasenko2010-04-051-7/+8
| | | | | | | | | | | | | | | | | function old new delta write_new_utmp - 253 +253 skip_dev_pfx - 30 +30 handle_sigchld 42 72 +30 telnetd_main 1650 1673 +23 make_new_session 415 438 +23 ... login_main 1140 1148 +8 update_utmp 337 313 -24 write_wtmp 220 154 -66 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 11/6 up/down: 406/-115) Total: ~291 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: split update_utmp from login/getty in preparation to use it for telnetdDenys Vlasenko2010-04-051-1/+0
| | | | | | | | | | | | | | | | | | | function old new delta update_utent - 339 +339 login_main 1498 1128 -370 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 339/-370) Total: -31 bytes function old new delta update_utmp 246 337 +91 login_main 1128 1140 +12 getty_main 1908 1918 +10 ... update_utent 339 - -339 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 5/6 up/down: 119/-368) Total: -249 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove some uses of argcDenys Vlasenko2010-01-041-4/+6
| | | | | | | | | | | | | | | | | | | | | | | function old new delta whoami_main 34 37 +3 logname_main 60 63 +3 hostid_main 35 38 +3 ttysize_main 136 135 -1 nmeter_main 673 672 -1 logger_main 387 386 -1 uuencode_main 330 328 -2 ifupdown_main 2125 2123 -2 mesg_main 158 155 -3 free_main 333 330 -3 cal_main 902 899 -3 acpid_main 443 440 -3 ar_main 196 189 -7 find_main 476 467 -9 ifconfig_main 1235 1221 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/12 up/down: 9/-49) Total: -40 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: fix logically inverted FEATURE_EXTRA_QUIET checkDenys Vlasenko2009-12-151-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: use applet_name instead of "init" - we can be linuxrcDenys Vlasenko2009-12-141-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: for paranoid reasons, restore SIGCONT too.Denys Vlasenko2009-12-141-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: fix "while true; do reboot; done" bug. +15 bytes. Closes bug 781Denys Vlasenko2009-12-141-42/+59
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: make FEATURE_EXTRA_QUIET more consistent. +1 byteDenys Vlasenko2009-12-141-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: restore possibility to reload inittab even before we finish initializationDenys Vlasenko2009-11-151-16/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use "can't" instead of "cannot"Denys Vlasenko2009-11-131-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb.h: tidy it up a bit. no code changes (verified)Denys Vlasenko2009-10-231-1/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)Denys Vlasenko2009-09-061-1/+1
| | | | | | | | | | function old new delta logdirs_reopen 1310 1308 -2 read_line_input 4757 4753 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-6) Total: -6 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* halt/reboot/poweroff: add a CONFIG_xxx to act SysV compatiblyAlexander Shishkin2009-07-272-1/+37
| | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: make comment more understandable. no code changesDenys Vlasenko2009-07-191-5/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* halt/reboot/powerdown: accept and ignore -iDenis Vlasenko2009-04-121-5/+9
|
* init: test for vt terminal with VT_OPENQRY,Denis Vlasenko2009-03-191-27/+5
| | | | | | | | | | assume that anything else is TERM=vt102, not TERM=linux. (Serial console test is less correct) Tentatively closes bug 195. function old new delta init_main 946 919 -27
* mail.c: more robust handling of SIGCHLDDenis Vlasenko2009-03-101-18/+23
| | | | | init: more robust signal handling
* halt/reboot/poweroff: improve error reportingDenis Vlasenko2009-03-071-1/+1
| | | | | | function old new delta halt_main 207 185 -22
* init: fix compile breakage with '# CONFIG_FEATURE_KILL_REMOVED is not set'Denis Vlasenko2009-02-141-16/+16
| | | | | runsvdir.c: fix typo in comment
* - improve helptextBernhard Reutner-Fischer2009-02-141-2/+2
|
* init: remove wait() loop on restart, it may be dangerousDenis Vlasenko2009-01-311-15/+22
|
* init: fix a bug where on reload order of entries might be wrongDenis Vlasenko2009-01-311-83/+89
| | | | | | | | | | | | | | | | | | function old new delta run_shutdown_and_kill_processes - 97 +97 pause_and_low_level_reboot - 48 +48 run_actions 81 107 +26 restart_handler 56 81 +25 new_init_action 137 150 +13 run 576 579 +3 open_stdio_to_tty 110 98 -12 check_delayed_sigs 195 170 -25 waitfor 354 318 -36 low_level_reboot 53 - -53 kill_all_processes 115 - -115 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 4/3 up/down: 212/-241) Total: -29 bytes
* modutils-24: use xasprintf and xzalloc where appropriate,Denis Vlasenko2009-01-312-9/+10
| | | | | | | | | | | | | remove unreachanble code build system: correct some dependencies in config system init: convert one #if into if() - for Rob. function old new delta obj_string_patch 136 129 -7 bb_init_module_24 4759 4615 -144 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-151) Total: -151 bytes
* init: small correction in a commentDenis Vlasenko2009-01-311-1/+1
|
* init: major improvement in documentation and signal handling.Denis Vlasenko2009-01-311-297/+374
| | | | | | | | | Lots of nasty, but hard to trip, races are fixed. text data bss dec hex filename 1038828 924 10932 1050684 10083c busybox_old 1038787 924 10932 1050643 100813 busybox_unstripped
* init: preparatory patch, no code changesDenis Vlasenko2009-01-311-22/+22
|
* init: reinstate proper handling of !ENABLE_FEATURE_USE_INITTABDenis Vlasenko2009-01-291-28/+31
|
* init: reduce ifdef forest (specially for Rob's happiness)Denis Vlasenko2009-01-281-12/+4
|
* libbb: introduce and use xmalloc_ttyname (-32 in bss).Denis Vlasenko2008-12-231-1/+1
| | | | | | | | | ash: small code shrink text data bss dec hex filename 793669 504 7524 801697 c3ba1 busybox_old 793659 504 7492 801655 c3b77 busybox_unstripped
* init: do not eat last char in messages;Denis Vlasenko2008-12-091-7/+7
| | | | | do not print duplicate "init:" prefix to syslog
* init: O_NONBLOCK needs more thought. reverted for nowDenis Vlasenko2008-11-291-2/+3
|
* *: a bit of code shrinkDenis Vlasenko2008-11-091-10/+6
| | | | | | | | | | | | | | 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