1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-14 08:39:02 -08:00

ad-hoc fix for spaces in PIDs

This commit is contained in:
Connor Olding 2016-04-08 12:01:54 -07:00
parent 6e22c77978
commit 30421c2375

View file

@ -4,7 +4,7 @@ unscreen() {
local pids="$(screen -ls | fgrep "$1" | cut -d. -f1)" local pids="$(screen -ls | fgrep "$1" | cut -d. -f1)"
for pid in $=pids; do for pid in $=pids; do
local ppid="$(ps h --ppid "$pid" -o pid)" local ppid="$(ps h --ppid "$pid" -o pid)"
kill "$ppid" || return 1 kill $=ppid || return 1
done done
return 0 return 0
} }