summaryrefslogtreecommitdiff
path: root/usr.bin/pkill
AgeCommit message (Collapse)Author
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
them via sysctl(KERN_PROC). In struct kinfo_proc the per-process flags move to p_psflags, leaving the per-thread flags in p_flags. Flag descriptions in ps(1) updated to be less obtuse. discussed with matthew@ some time ago; ok jca@, manpage bits ok jmc@
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-06-03sort options list;Jason McIntyre
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
and printing it discussed with and ok millert@
2012-08-21Missing "-q" in usage().Antoine Jacoutot
ok espie@
2012-08-21Sort options.Antoine Jacoutot
"obviously okay" espie@
2012-08-21add -q "silent" option similar to grepMarc Espie
okay ajacoutot@, guenther@
2012-07-10make pkill -l print the proper processes also when the invert (-v)Alexander Hall
flag is passed ok lum@
2012-04-21Remove a check made superfluous by the KERN_PROC_SHOW_THREADS flag.Philip Guenthe
This lets new binaries work (at least w/o the -H option) with old kernels. ok pirofti@ deraadt@
2012-04-12Add per thread accounting, mainly for usage & friends.Paul Irofti
This expands the already bloated FILL_KPROC macro to take an extra parameter that indicates if the callee is a thread or a process. The userland bits are adjusted accordingly and ps(1) and top(1) now display per thread usage times when -H is used. Also pkill(1) had to be adjusted so that duplicates don't pop up. libkvm does basically the same thing as the kernel bits. Okay guenther@.
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
fix proposed by lum actually happened in netbsd -r1.16, some 6 years ago; ok lum
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
signalled using the "Long" format, like pgrep. Original diff from FreeBSD, modified somewhat on tech@, with feedback from nicm@ Man page input from jmc@
2011-04-10Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowPhilip Guenthe
that we've got name we want for the API we want "ZAP!" deraadt@
2010-09-29various EXIT STATUS fixes; from Daniel DickmanJason McIntyre
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
2009-07-27document how patterns are matched and that only the first 16 charsJason McIntyre
are tracked to match the command name; pointed out by fgsch diff adapted from text from gad@freebsd ok fgsch sobrado millert
2009-06-07tweak -v; from Tim van der MolenJason McIntyre
2009-03-26fix a few typographical errors found by spell(1).Igor Sobrado
ok dtucker@, jmc@
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-11bump Mdocdate for pages committed in "febuary", necessary becauseJason McIntyre
of a typo in rcs.c;
2008-02-07Add add -o flag to pkill/pgrep like on Solaris and Linux.Todd C. Miller
OK jmc@ henning@ oga@ mikeb@
2007-10-31"signal" is an argument, not a flag;Jason McIntyre
originally requested by sobrado, and now Pierre Riteau
2007-05-31convert to new .Dd format;Jason McIntyre
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-16- basic cleanupJason McIntyre
- do not use EXIT STATUS (non-standard in section 1)
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-07-06add pgrep to .Nm line to allow `apropos/whatis pgrep' to work;Jason McIntyre
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-06We don't have signal(7)Todd C. Miller
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@