mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-05 16:01:52 +07:00
refactoring
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user