summaryrefslogtreecommitdiff
path: root/usr.bin/pkill/pkill.c
AgeCommit message (Collapse)Author
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-02-07Add add -o flag to pkill/pgrep like on Solaris and Linux.Todd C. Miller
OK jmc@ henning@ oga@ mikeb@
2006-09-19Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@
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
ok millert@ robert@
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
From: NetBSD; ok millert@
2005-03-02Report non-existing user or groupname correctly. From David BrownleeOtto Moerbeek
<abs@netbsd>. ok millert@
2005-02-11Fix -d option; it should print a newline at EOL, not the specified delimeter.Todd C. Miller
Problem found and OK by robert@
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
died on its own in the time between when the process list was consulted and when we do the actual kill. This fixes an annoyance for privsep processes (and others) where when you kill one the others die by themselves.
2004-07-15Skip SYSTEM and ourown proccess on every loop.Mike Pechkin
millert@, otto@
2004-06-24When given multiple processes to kill, keep going if we are unable to killTodd C. Miller
one (previously it would error out and not kill the remaining ones). OK deraadt@
2004-03-12knfTheo de Raadt
2004-01-07Convert back to using kvm_getproc2() and friends now that libkvmTodd C. Miller
supports it.
2004-01-06pkill/pgrep from NetBSD with changes to use kvm_getprocs(). SelectingTodd C. Miller
on session ID does not current work but that will change once the kernel supports the KERN_PROC2 sysctl and pkill/pgrep is modified to use kvm_getproc2(). OK deraadt@