diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-01-05 03:09:58 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-01-05 03:09:58 +0100 |
commit | a86612f10adb66d97c8a725c7f689da1ad7c717b (patch) | |
tree | 5a37436cf181024f468b3b004ce9b822f05bc8ac | |
parent | ab094d9750a709e334fa6922d33873eccf74b1b6 (diff) |
t/livetest-bitlbee.sh: ps is posix, /proc is not
-rwxr-xr-x | skype/t/livetest-bitlbee.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skype/t/livetest-bitlbee.sh b/skype/t/livetest-bitlbee.sh index 8aa048ff..7cbfbf6e 100755 --- a/skype/t/livetest-bitlbee.sh +++ b/skype/t/livetest-bitlbee.sh @@ -7,7 +7,7 @@ start_skyped() do [ -e skypedtest.pid ] || break pid=$(sed 's/.*: //' skypedtest.pid) - if [ -e /proc/$pid ]; then + if [ -n "$(ps -p $pid -o pid=)" ]; then sleep 5 else start_skyped "$@" @@ -87,7 +87,7 @@ if [ -z "$TUNNELED_MODE" ]; then if [ -f skypedtest.pid ]; then pid=$(sed 's/.*: //' skypedtest.pid) rm skypedtest.pid - [ -e /proc/$pid ] && kill -TERM $pid + [ -n "$(ps -p $pid -o pid=)" ] && kill -TERM $pid fi fi |