Changeset a86612f for skype


Ignore:
Timestamp:
2011-01-05T02:09:58Z (14 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
f503585
Parents:
ab094d9
Message:

t/livetest-bitlbee.sh: ps is posix, /proc is not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/t/livetest-bitlbee.sh

    rab094d9 ra86612f  
    88                [ -e skypedtest.pid ] || break
    99                pid=$(sed 's/.*: //' skypedtest.pid)
    10                 if [ -e /proc/$pid ]; then
     10                if [ -n "$(ps -p $pid -o pid=)" ]; then
    1111                        sleep 5
    1212                else
     
    8888                pid=$(sed 's/.*: //' skypedtest.pid)
    8989                rm skypedtest.pid
    90                 [ -e /proc/$pid ] && kill -TERM $pid
     90                [ -n "$(ps -p $pid -o pid=)" ] && kill -TERM $pid
    9191        fi
    9292fi
Note: See TracChangeset for help on using the changeset viewer.