summaryrefslogtreecommitdiff
path: root/usr.bin/pkill/pkill.c
AgeCommit message (Expand)Author
2021-09-01A couple commands don't need sys/param.h, but they do need sys/signal.hTheo de Raadt
2019-12-16Delete tests for P_THREAD that predate the existence ofPhilip Guenther
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-09-16Use uid_from_user(3) and gid_from_group(3) in utilities thatTodd C. Miller
2016-10-10- mark delim variable as const. it is a literal string;Gleydson Soares
2015-10-11fix a regression spotted by chris@. the -f and -I arguments fetch processTheo de Raadt
2015-10-10pkill has to get all the getopt, getpwuid, libkvm stuff out of the wayTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-05-07calloc, from peter maloneTed Unangst
2013-11-12simpler prototype repairsTheo de Raadt
2013-09-22Stop merging the per-thread and per-process flags when reportingPhilip Guenther
2013-06-03-I to confirm pkills. ok manyTed Unangst
2012-12-12properly handle the case where a process has disappeared in between grep'ingAlexander Hall
2012-08-21Missing "-q" in usage().Antoine Jacoutot
2012-08-21add -q "silent" option similar to grepMarc Espie
2012-07-10make pkill -l print the proper processes also when the invert (-v)Alexander Hall
2012-04-21Remove a check made superfluous by the KERN_PROC_SHOW_THREADS flag.Philip Guenthe
2012-04-12Add per thread accounting, mainly for usage & friends.Paul Irofti
2012-03-13Teach pgrep/pkill to only match processes, not threads. ok guenther@Stuart Henderson
2012-03-01Remove unused variable. Added in 1.20 by me.lum
2012-02-16exit usage() with STATUS_BADUSAGE rather than STATUS_ERROR, per the man page;Jason McIntyre
2012-02-15avoid usage() warping onto the next line;Jason McIntyre
2012-02-09restrict pkill/pgrep to the routing domain specified by -T; ok henning@, mpf@Markus Friedl
2012-01-17Allow pkill to use the -l option. This displays which processes have beenlum
2011-04-10Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowPhilip Guenthe
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
2008-02-07Add add -o flag to pkill/pgrep like on Solaris and Linux.Todd C. Miller
2006-09-19Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
2005-07-16sort options and sync usage();Jason McIntyre
2005-05-20Don't print an empty line when no match is found in pgrep mode.Otto Moerbeek
2005-04-11handle snprintf return value overflow case; ok ottoTheo de Raadt
2005-03-27revert r1.9; this one needs more discussionRobert Nagy
2005-03-27add a -i option to ignore case distinctions in the process match;Robert Nagy
2005-03-02Report non-existing user or groupname correctly. From David BrownleeOtto Moerbeek
2005-02-11Fix -d option; it should print a newline at EOL, not the specified delimeter.Todd C. Miller
2004-12-29handle snprintf -1; otto okTheo de Raadt
2004-07-15Don't print a warning if kill(2) returns ESRCH since the process may haveTodd C. Miller
2004-07-15Skip SYSTEM and ourown proccess on every loop.Mike Pechkin
2004-06-24When given multiple processes to kill, keep going if we are unable to killTodd C. Miller
2004-03-12knfTheo de Raadt
2004-01-07Convert back to using kvm_getproc2() and friends now that libkvmTodd C. Miller
2004-01-06pkill/pgrep from NetBSD with changes to use kvm_getprocs(). SelectingTodd C. Miller