aboutsummaryrefslogtreecommitdiff
path: root/procps/kill.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-2/+2
|
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-0/+1
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* #define -> static const int. Also got rid of some big static buffers.Mark Whitley2001-01-231-2/+2
|
* Change calls to error_msg.* and strerror to use perror_msg.*.Matt Kraai2000-12-181-3/+3
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-7/+7
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Stop using TRUE and FALSE for exit status.Matt Kraai2000-12-011-3/+4
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* List of signals updated from util-linux-2.10oPavel Roskin2000-09-131-55/+76
| | | | Architecture names are no longer used - should now compile on SPARC
* Some #include updates.Eric Andersen2000-08-101-1/+0
| | | | -Erik
* Extract usage information into a separate file.Matt Kraai2000-07-161-18/+0
|
* Use global applet_name instead of local versions.Matt Kraai2000-07-121-2/+1
|