From 414af7e1dcefb4a5eb39f185c24d24c9115757d3 Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Fri, 18 Dec 2009 04:29:15 -0800 Subject: [PATCH] Don't use killall to kill off browser-switchboards in postrm As it turns out, killall will happily kill off the postrm, which causes the uninstall to fail. --- debian/postrm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/debian/postrm b/debian/postrm index 86d2b28..e2c989c 100644 --- a/debian/postrm +++ b/debian/postrm @@ -19,14 +19,12 @@ set -e # the debian-policy package kill_old_proxies() { - # Kill off old python browser-switchboards, if any + # Kill off browser-switchboards # This would be so much nicer with pgrep/pkill ... - proxy_pids=`busybox ps | fgrep "python /usr/bin/browser-switchboard" | fgrep -v grep | awk '{ print $1 }'` + proxy_pids=`busybox ps | fgrep browser-switchboard | fgrep -v grep | fgrep -v browser-switchboard.postrm | awk '{ print $1 }'` if [ ! -z "$proxy_pids" ]; then kill $proxy_pids fi - # Kill off C browser-switchboards - killall browser-switchboard } case "$1" in -- 1.7.9.5