mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 22:14:50 -04:00
apt-get-update: implement SIGINIT trap; hide 'ps' output
This commit is contained in:
parent
c4089d8d40
commit
0cf6524f0f
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ sigterm_trap() {
|
|||
if [ "$lastpid" = "" ]; then
|
||||
exit 143
|
||||
fi
|
||||
ps -p "$lastpid"
|
||||
ps -p "$lastpid" >/dev/null 2>&1
|
||||
if [ ! "$?" = "0" ]; then
|
||||
## Already terminated.
|
||||
exit 143
|
||||
|
@ -17,7 +17,7 @@ sigterm_trap() {
|
|||
exit 143
|
||||
}
|
||||
|
||||
trap "sigterm_trap" SIGTERM
|
||||
trap "sigterm_trap" SIGTERM SIGINT
|
||||
|
||||
timeout_after="120"
|
||||
kill_after="10"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue