use 'kill', not 'kill -9' (#379)

pull/393/head^2
Josh Rabinowitz 5 years ago committed by GitHub
parent cdad4aba37
commit c4331693f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -67,7 +67,7 @@ function stop_gpg_agent {
local username
username=$(id -u -n)
ps -wx -U "$username" | gawk \
'/gpg-agent --homedir/ { if ( $0 !~ "awk" ) { system("kill -9 "$1) } }' \
'/gpg-agent --homedir/ { if ( $0 !~ "awk" ) { system("kill "$1) } }' \
> /dev/null 2>&1
}

Loading…
Cancel
Save