s4
changeset 517:6cdd032070e3
$TTY not set on sh-script
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 04 Apr 2019 10:31:10 +0900 |
parents | 575e321179c3 |
children | f330dcb80a7f |
files | s4-funcs.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/s4-funcs.sh Thu Apr 04 10:26:33 2019 +0900 1.2 +++ b/s4-funcs.sh Thu Apr 04 10:31:10 2019 +0900 1.3 @@ -352,7 +352,7 @@ 1.4 rm $sqi 1.5 } 1.6 cleanup2() { # Dirty workaround for produced zombie processes 1.7 - if [ -z "$TTY" ]; then # When called in daemon environment 1.8 + if [ -n "$HTTP_USER_AGENT" ]; then # When called from httpd 1.9 pkill -9 -u `id -u` -P 1 1.10 fi 1.11 }