s4
changeset 516:575e321179c3
Do not call pkill cleanup on terminal
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 04 Apr 2019 10:26:33 +0900 |
parents | 0b47ddf9c8de |
children | 6cdd032070e3 |
files | s4-funcs.sh |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/s4-funcs.sh Thu Apr 04 10:09:37 2019 +0900 1.2 +++ b/s4-funcs.sh Thu Apr 04 10:26:33 2019 +0900 1.3 @@ -352,7 +352,9 @@ 1.4 rm $sqi 1.5 } 1.6 cleanup2() { # Dirty workaround for produced zombie processes 1.7 - pkill -9 -u `id -u` -P 1 1.8 + if [ -z "$TTY" ]; then # When called in daemon environment 1.9 + pkill -9 -u `id -u` -P 1 1.10 + fi 1.11 } 1.12 cleanup() { 1.13 trap '' INT HUP EXIT TERM PIPE