summaryrefslogtreecommitdiffstats
path: root/bin/pkill/pkill.c
Commit message (Collapse)AuthorAgeFilesLines
* When finding processes, ignore ourself and our ancestors. It is almostbrian2009-05-171-2/+28
| | | | | | | | | always surprising when you kill a 'sh -c ...' ancestor or when you kill yourself when using -f. Add a -a switch for backwards compatibility. MFC after: 3 weeks
* Improve the `pkill -t' handling, which I changed in my previous commit.ed2008-09-301-8/+10
| | | | | | | | | In my previous commit I disabled pkill(1)'s automatic prepending of the "tty" string when `pkill -t' was being used. Re-enable it and stat() both possible device names when called. Requested by: jhb, rwatson (MFC) MFC after: 1 month
* Don't automatically prepend the "tty" prefix to `pkill -t' arguments.ed2008-09-281-5/+2
| | | | | | | | | | Because we now enforce UNIX98-style PTY's, we now use a lot of TTY's that don't have the traditional /dev/ttyXX naming scheme. pkill(1)'s -t flag automatically prepended the word "tty" to each TTY that was passed on the command line. This meant that `pkill -t pts/0' was actually converted to /dev/ttypts/0. Disable this broken behaviour for now. Reported by: erwin
* pkill(1) first appeared in /usr/bin, but later it was moved to /binyar2008-08-311-0/+756
for the convenience of rc.d. Now it has happily lived there for quite a while. So move the pkill(1) source files from usr.bin to bin, too. Approved by: gad
OpenPOWER on IntegriCloud