aboutsummaryrefslogtreecommitdiff
path: root/procps/kill.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* whitespace fixes (leading spaces to tab)vda2007-01-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17265 69ca8d6d-28ef-0310-b511-8ec308f3f277
* replace /proc scanning code by more versatile one.vda2006-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 git-svn-id: svn://busybox.net/trunk/busybox@16509 69ca8d6d-28ef-0310-b511-8ec308f3f277
* top: improve CPU% calculationvda2006-11-051-14/+14
| | | | | | | style fixes git-svn-id: svn://busybox.net/trunk/busybox@16508 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Unneeded code removed, usused field "unsigned pscpu" removedvda2006-11-011-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16488 69ca8d6d-28ef-0310-b511-8ec308f3f277
* PID should be stored in pid_t, not int or long.vda2006-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. git-svn-id: svn://busybox.net/trunk/busybox@16485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* attempt to regularize atoi mess.vda2006-10-081-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_applet_name -> applet_namevda2006-10-031-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* kill: implement killall5. OpenWRT folks will be happy.vda2006-09-271-28/+48
| | | | | | | | However their code was unusably different from sysvinit original. Run tested. git-svn-id: svn://busybox.net/trunk/busybox@16235 69ca8d6d-28ef-0310-b511-8ec308f3f277
* kill: fix bugs (kill -l output was horrible), fix style, constify datavda2006-09-271-55/+56
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16234 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Random cleanup hanging around my tree.landley2006-09-121-8/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16108 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A couple things that got tangled up in my tree, easier to check in both thanlandley2006-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. git-svn-id: svn://busybox.net/trunk/busybox@15687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-021-16/+2
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-1/+1
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* close bug 638vodz2006-01-251-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13588 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Jason Schoon writes:vapier2006-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. git-svn-id: svn://busybox.net/trunk/busybox@13063 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito adding support for '-q'andersen2004-08-191-1/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9129 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup segfault on 'kill -q'andersen2003-08-061-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7168 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rework kill / killall so it behaves itself, even when subjectedandersen2003-07-261-61/+61
| | | | | | | | to abuse. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7107 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update a bunch of docs. Run a script to update my email addr.andersen2003-07-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compiler warnings, patch by Steven Scholzbug12003-02-091-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6549 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch_67 from Vladimir N. Oleynikbug12002-11-251-8/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6012 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch last_pach62 from vodz. This patch moves all the /proc parsingandersen2002-10-221-4/+2
| | | | | | | code into libbb so it can be shared by ps, top, etc, saving over 1.5k. git-svn-id: svn://busybox.net/trunk/busybox@5685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply vodz' last_patch52andersen2002-09-161-19/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5496 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix indentation. Support killall -q, for pcmcia-csandersen2002-07-231-36/+52
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@5080 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update some missing copyright noticesandersen2002-04-131-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@4599 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.kraai2001-12-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3925 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If find_pid_by_name() had an error, it was returning -1, but storingandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@3854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Latest patch from vodz. Adds a check for divide by zero in the posixandersen2001-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. git-svn-id: svn://busybox.net/trunk/busybox@3181 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some adjustments, mostly from David McCullough <davidm@lineo.com> toandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@3130 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a stupid thinko, and fix killall to cope with the updatedandersen2001-07-051-2/+2
| | | | | | | | find_pid_by_name() interface -Erik git-svn-id: svn://busybox.net/trunk/busybox@3007 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A cleanup patch from Jeff Garzik to static-ify a number ofandersen2001-03-091-1/+1
| | | | | | | namespace polluting things that really should be static. git-svn-id: svn://busybox.net/trunk/busybox@2027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-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. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change calls to error_msg.* and strerror to use perror_msg.*.kraai2000-12-181-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-7/+7
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-011-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* List of signals updated from util-linux-2.10oproski2000-09-131-55/+76
| | | | | | | Architecture names are no longer used - should now compile on SPARC git-svn-id: svn://busybox.net/trunk/busybox@1041 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some #include updates.andersen2000-08-101-1/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-18/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use global applet_name instead of local versions.kraai2000-07-121-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@830 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganized signal names for better architecture support -- patchandersen2000-07-061-46/+30
| | | | | | | | thanks to simon wood <simon@mungewell.uklinux.net> -Erik git-svn-id: svn://busybox.net/trunk/busybox@749 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed exit status for killallproski2000-06-061-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@619 69ca8d6d-28ef-0310-b511-8ec308f3f277