Change vm process search to include non-smp beam

This commit is contained in:
Tuncer Ayaz 2010-12-10 17:11:01 +01:00
parent 618b292c3d
commit 5bb78f619e

View file

@ -70,16 +70,16 @@ case "$1" in
Linux|Darwin|FreeBSD|DragonFly|NetBSD|OpenBSD) Linux|Darwin|FreeBSD|DragonFly|NetBSD|OpenBSD)
# PID COMMAND # PID COMMAND
PID=`ps ax -o pid= -o command=|\ PID=`ps ax -o pid= -o command=|\
grep "$RUNNER_BASE_DIR/.*/[b]eam.smp"|awk '{print $1}'` grep "$RUNNER_BASE_DIR/.*/[b]eam"|awk '{print $1}'`
;; ;;
SunOS) SunOS)
# PID COMMAND # PID COMMAND
PID=`ps -ef -o pid= -o args=|\ PID=`ps -ef -o pid= -o args=|\
grep "$RUNNER_BASE_DIR/.*/[b]eam.smp"|awk '{print $1}'` grep "$RUNNER_BASE_DIR/.*/[b]eam"|awk '{print $1}'`
;; ;;
CYGWIN*) CYGWIN*)
# UID PID PPID TTY STIME COMMAND # UID PID PPID TTY STIME COMMAND
PID=`ps -efW|grep "$RUNNER_BASE_DIR/.*/[b]eam.smp"|\ PID=`ps -efW|grep "$RUNNER_BASE_DIR/.*/[b]eam"|\
awk '{print $2}'` awk '{print $2}'`
;; ;;
esac esac