summaryrefslogtreecommitdiff
path: root/procps/kill.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* more of -Wall fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko2008-05-151-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some are fixing real bugs. function old new delta syslogd_main 938 958 +20 get_signum 136 143 +7 obj_load 777 782 +5 recv_from_to 210 214 +4 get_next_block 1795 1799 +4 display_topmem_process_list 1117 1121 +4 logread_main 484 487 +3 buffer_fill_and_print 73 76 +3 kill_main 687 689 +2 ll_remember_index 240 241 +1 do_stats 452 453 +1 if_readconf 166 165 -1 display_process_list 1192 1191 -1 run_applet_and_exit 507 505 -2 print_signames 33 31 -2 parse_one_line 1092 1090 -2 find_out_spec 57 55 -2 add_ksymoops_symbols 421 419 -2 ash_main 1407 1402 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 11/8 up/down: 54/-17) Total: 37 bytes
* shells: do not frocibly enable test, echo and kill _applets_,Denis Vlasenko2008-04-011-1/+0
| | | | | | | | | | | | | | | | | | | just build relevant source and use xxx_main functions. build system: add a special case when we have exactly one applet enabled (makes "true", "false", "basename" REALLY tiny). getopt32: do not use stdio. function old new delta getopt32 1385 1412 +27 make_device 1187 1200 +13 basename_main 120 127 +7 tcpudpsvd_main 1922 1926 +4 testcmd 5 - -5 echocmd 5 - -5 fuser_main 1243 1231 -12 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 4/1 up/down: 51/-22) Total: 29 bytes
* cosmetic change in message textDenis Vlasenko2007-11-151-1/+1
|
* bad syntax error should go to stderrPaul Fox2007-11-141-1/+1
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* print_signames_and_exit -> print_signames (because of "ash calls kill_main")Denis Vlasenko2007-09-301-1/+2
|
* pgrep,pkill: new applets by Loic Grenie <loic.grenie@gmail.com>Denis Vlasenko2007-09-291-26/+22
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* kill: improve commentDenis Vlasenko2007-05-061-1/+2
|
* kill: fix recent breakage of vda, also make code smaller by 21 bytes.Denis Vlasenko2007-05-061-5/+12
|
* test: code size saving, no logic changesDenis Vlasenko2007-05-011-1/+3
| | | | | | | | | | | | | | | ps: fix warning, make a bit smaller kill -l: make smaller & know much more signals function old new delta get_signum 121 153 +32 kill_main 826 843 +17 get_signame 44 36 -8 signals 252 224 -28 .rodata 131955 131923 -32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/3 up/down: 49/-68) Total: -19 bytes
* ash,kill: use common code for kill applet/builtinDenis Vlasenko2007-04-291-38/+57
| | | | | | | | | | | | | | | | | | | | | | | | # make bloatcheck function old new delta evaltreenr 644 654 +10 evaltree 644 654 +10 parse_conf 1440 1444 +4 dpkg_deb_main 426 429 +3 ed_main 3319 3321 +2 passwd_main 2093 2091 -2 kill_main 830 826 -4 singlemount 4609 4601 -8 find_command 962 954 -8 get_lcm 123 105 -18 .rodata 132243 132147 -96 killcmd 449 120 -329 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/7 up/down: 29/-465) Total: -436 bytes # size busybox_old busybox_unstripped text data bss dec hex filename 723901 2940 27504 754345 b82a9 busybox_old 723457 2940 27504 753901 b80ed busybox_unstripped
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* whitespace fixes (leading spaces to tab)Denis Vlasenko2007-01-131-1/+1
|
* replace /proc scanning code by more versatile one.Denis Vlasenko2006-11-051-3/+3
| | | | | | | Use it where appropriate. Stop scanning /etc/passwd *for every process*!!! (uid->username) top: reduce memory usage - we won't save unneeded fields from /proc info anymore. Downside: ~+250 bytes of code
* top: improve CPU% calculationDenis Vlasenko2006-11-051-14/+14
| | | | style fixes
* Unneeded code removed, usused field "unsigned pscpu" removedDenis Vlasenko2006-11-011-3/+4
|
* PID should be stored in pid_t, not int or long.Denis Vlasenko2006-11-011-14/+16
| | | | | find_pid_by_name() was returning 0 or -1 in last array element, but -1 was never checked. We can use just 0 intead.
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-2/+2
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-4/+4
|
* kill: implement killall5. OpenWRT folks will be happy.Denis Vlasenko2006-09-271-28/+48
| | | | | However their code was unusably different from sysvinit original. Run tested.
* kill: fix bugs (kill -l output was horrible), fix style, constify dataDenis Vlasenko2006-09-271-55/+56
|
* Random cleanup hanging around my tree.Rob Landley2006-09-121-8/+0
|
* A couple things that got tangled up in my tree, easier to check in both thanRob Landley2006-07-121-32/+25
| | | | | | | | | | | | | | untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree.
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-021-16/+2
| | | | and eventual platform specific includes in early.
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* close bug 638"Vladimir N. Oleynik"2006-01-251-1/+5
|
* just whitespaceTim Riker2006-01-251-1/+1
|
* Jason Schoon writes:Mike Frysinger2006-01-041-1/+1
| | | | | | | Here is a patch for kill that I posted long ago, but forgot about until today. This allows kill to specify a negative process/group (such as -1). The shell already had this fix applied by Vodz some time ago.
* Patch from Tito adding support for '-q'Eric Andersen2004-08-191-1/+4
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* Fixup segfault on 'kill -q'Eric Andersen2003-08-061-5/+5
|
* Rework kill / killall so it behaves itself, even when subjectedEric Andersen2003-07-261-61/+61
| | | | | to abuse. -Erik
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-8/+8
|
* Fix compiler warnings, patch by Steven ScholzGlenn L McGrath2003-02-091-1/+1
|
* last_patch_67 from Vladimir N. OleynikGlenn L McGrath2002-11-251-8/+10
|
* Patch last_pach62 from vodz. This patch moves all the /proc parsingEric Andersen2002-10-221-4/+2
| | | | code into libbb so it can be shared by ps, top, etc, saving over 1.5k.
* Apply vodz' last_patch52Eric Andersen2002-09-161-19/+13
|
* Fix indentation. Support killall -q, for pcmcia-csEric Andersen2002-07-231-36/+52
| | | | -Erik
* Update some missing copyright noticesEric Andersen2002-04-131-0/+1
|
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai2001-12-201-1/+1
|
* If find_pid_by_name() had an error, it was returning -1, but storingEric Andersen2001-12-061-1/+1
| | | | | | | | that into a pid_t, which is unsigned on a number archs. Furthermore, find_pid_by_name() would _never_ return an error if the intended proces was "init", but instead would return 1, meaning we would fail to work on 2.4.x kernels running an initrd... -Erik
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-2/+2
| | | | -Erik
* Latest patch from vodz. Adds a check for divide by zero in the posixEric Andersen2001-08-021-123/+19
| | | | | | math suport, cleaner math syntax error checking, moves redundant signal string tables (from kill and ash) into libbb and provides a few cleanups elsewhere.
* Some adjustments, mostly from David McCullough <davidm@lineo.com> toEric Andersen2001-07-191-3/+2
| | | | | | | make busybox be more uClinux friendly. I also adjusted Config.h for uClinux so it will automagically disable apps the arn't going to work without fork() and such. -Erik
* Fix a stupid thinko, and fix killall to cope with the updatedEric Andersen2001-07-051-2/+2
| | | | | find_pid_by_name() interface -Erik
* A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen2001-03-091-1/+1
| | | | namespace polluting things that really should be static.
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-5/+2
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.