mirror of
https://github.com/stumpwm/stumpwm-contrib.git
synced 2026-09-10 07:26:25 -04:00
Merge pull request #313 from eugeneandrienko/master
stumpish: Fix search for stumpwm PID if launched as stumpwm child pro…
This commit is contained in:
commit
5733636475
|
|
@ -40,7 +40,9 @@ fi
|
|||
|
||||
stumpwm_pid ()
|
||||
{
|
||||
if command -v pgrep 2>&1 >/dev/null; then
|
||||
if test $(uname -s) = "FreeBSD" && command -v pgrep 2>&1 > /dev/null; then
|
||||
STUMPWM_PID=$(pgrep -a -u $(id -u) stumpwm)
|
||||
elif command -v pgrep 2>&1 >/dev/null; then
|
||||
STUMPWM_PID=$(pgrep -u $(id -u) stumpwm)
|
||||
elif [ -d /proc ]; then
|
||||
# Go up the process chain until we locate StumpWM's process using
|
||||
|
|
|
|||
Loading…
Reference in a new issue