[Bug 215781] Calling pgrep "javafrom java process

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 4 23:38:50 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215781

Jilles Tjoelker <jilles at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles at FreeBSD.org

--- Comment #2 from Jilles Tjoelker <jilles at FreeBSD.org> ---
Unless the -a option is used, pgrep and pkill do not find any ancestor
processes. This is documented if you read the man page fully, but might be
slightly unexpected. On the other hand, why use pgrep to find the current shell
process?

The commit message that added this (SVN r192242) states:

"When finding processes, ignore ourself and our ancestors.  It is almost
always surprising when you kill a 'sh -c ...' ancestor or when you kill
yourself when using -f."

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list