Fix the bug which did not kill the processes with pids that had
a zero in them. Also, some tests do a AT_CHECK([kill `cat pid`]) which
on windows prints something on the stdout causing the tests to fail.
So supress it.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
for i in $*; do
# tasklist will always have return code 0.
# If pid does exist, there will be a line with the pid.
- if tasklist //fi "PID eq $i" | grep $i; then
+ if tasklist //fi "PID eq $i" | grep $i >/dev/null; then
:
else
return 1
-[1-9]*)
shift
for i in $*; do
- taskkill //F //PID $i
+ taskkill //F //PID $i >/dev/null
done
;;
- [1-9][1-9]*)
+ [1-9][0-9]*)
for i in $*; do
- taskkill //F //PID $i
+ taskkill //F //PID $i >/dev/null
done
;;
esac