aboutsummaryrefslogtreecommitdiff
path: root/init (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* init: don't srop unterminated processes' entries during inittab reloadPaulius Zaleckas2013-08-161-3/+10
| | | | | | | | | | | | | This feature was removed in 72c99af It is useful when process is removed from inittab and later added back, but never terminated. It prevents init from spawning duplicate. function old new delta check_delayed_sigs 176 182 +6 Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: don't use fixed size buffer for commandDenys Vlasenko2013-08-161-9/+13
| | | | | | | | | | | | | | | We store init actions forever. 256 bytes per action means that a typical inittab of ~10 commands uses 2.5k just to remember command strings - which are usually _much_ shorter than 256 bytes. At a cost of a bit more code, it's possible to allocate only actually needed amount. function old new delta init_exec 224 248 +24 new_init_action 140 142 +2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: remove special-case code for machines with less tham 1 MB of RAM.Denys Vlasenko2013-05-211-15/+18
| | | | | | | function old new delta init_main 920 781 -139 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/inittab: fix a few incorrect statements about initDenys Vlasenko2013-03-291-8/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanup. no code changesDenys Vlasenko2013-01-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: add a segv debugging aid, disabled by defaultDenys Vlasenko2012-01-301-0/+51
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bootchartd: add process accounting featureQuentin Casasnovas2012-01-181-15/+24
| | | | | | | | | | | | function old new delta bootchartd_main 962 1088 +126 finalize 294 357 +63 acct - 33 +33 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 222/0) Total: 222 bytes Signed-off-by: Quentin Casasnovas <quentin.casasnovas@mathembedded.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: code shrink -4 bytesDenys Vlasenko2011-12-051-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: utmp update of DEAD_PROCESS was misplaced, and could be skipped. Fixing.Denys Vlasenko2011-12-051-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nommu: fix cases where we mangle argv[0][0]Denys Vlasenko2011-11-221-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: work around sysinfo.h versus linux/*.h problemsDenys Vlasenko2011-07-261-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* halt: perror_msg_and_die needs bb_ prefixDenys Vlasenko2011-07-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* halt/reboot: better message if /sbin/telinit is not foundDenys Vlasenko2011-07-031-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-052-4/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mesg: operate on stdin, not on stderr (compat)Denys Vlasenko2011-03-281-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mesg: make group/all writability configurableDenys Vlasenko2011-03-221-25/+35
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: fix a case where execv's 1st arg was wrongDenys Vlasenko2011-03-211-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move utmp.h include to libbb.hDenys Vlasenko2011-01-252-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass removal of underscores from _BB_DIR_foo and _BB_SUID_fooDenys Vlasenko2011-01-184-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: simpler handling of leading dash in commandsDenys Vlasenko2010-12-251-9/+11
| | | | | | | function old new delta init_exec 233 219 -14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use BB_EXECVP_or_die where appropriateDenys Vlasenko2010-11-281-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: if PID!=1, show clearer error message. move usage text closer to main()Denys Vlasenko2010-11-021-134/+137
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: whitespace fixesDenys Vlasenko2010-10-281-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: do not sleep forever on usage errorsDenys Vlasenko2010-10-251-4/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: do not clear CRTSCTS (fix from Debian bug 528560)Denys Vlasenko2010-10-241-3/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init/*: move applet/kbuild/config/help bits into applet source filesDenys Vlasenko2010-10-126-131/+315
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-165-5/+5
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bootchartd: mounting tmpfs is Linux-specificJeremie Koenig2010-07-301-7/+13
| | | | | Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: trailing empty lines removedDenys Vlasenko2010-07-261-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: make the initial $TERM value configurableJeremie Koenig2010-07-192-1/+13
| | | | | Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init,halt: portability improvementsJeremie Koenig2010-07-194-23/+40
| | | | | | | | | | | * make init and halt use the same RB_* constants for reboot() * conditionalize the Linux-specific code Inspired by init.init.diff from the Debian kFreeBSD patches at: http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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>