mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-09 11:52:40 -04:00
refactoring
This commit is contained in:
parent
81634930fa
commit
c4f0e1d16f
1 changed files with 3 additions and 2 deletions
|
@ -21,9 +21,10 @@ sigterm_trap() {
|
|||
if [ "$lastpid" = "" ]; then
|
||||
exit 143
|
||||
fi
|
||||
if kill -0 -- "$lastpid" &>/dev/null ; then
|
||||
kill -s sigterm -- "$lastpid"
|
||||
if ! kill -0 -- "$lastpid" &>/dev/null ; then
|
||||
exit 143
|
||||
fi
|
||||
kill -s sigterm -- "$lastpid"
|
||||
exit 143
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue