Update of /cvsroot/monetdb/MonetDB/src/testing
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8127/src/testing
Modified Files:
MkillUsers.in
Log Message:
propagated changes of Thursday Nov 01 2007 - Thursday Nov 08 2007
from the MonetDB_1-20 branch to the development trunk
Index: MkillUsers.in
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/testing/MkillUsers.in,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- MkillUsers.in 8 Oct 2007 09:24:37 -0000 1.30
+++ MkillUsers.in 8 Nov 2007 19:14:55 -0000 1.31
@@ -98,19 +98,33 @@
files="$files `ls $b/* 2>/dev/null | egrep
'/(lt-)?(mserver5|Mserver|mclient|mclient\.py|mjclient|Mdiff|Mlog|Mtimeout|pf|actuator|sensor)$'`"
done
+if type -p fuser >/dev/null
+ then FUSER='fuser'
+ else FUSER=''
+fi
+
case `uname` in
Linux)
- pids1="`fuser $files | cut -d: -f2- | perl -pe 's|[a-z]||g'`"
+ if [ "$FUSER" ]
+ then pids1="`fuser $files | cut -d: -f2- | perl -pe 's|[a-z]||g'`"
+ else pids1=''
+ fi
pids1="`echo "$pids1" | perl -pe 's| *'"$CHILD"'||g'`"
if [ "$PARENT" ] ; then
pids1="`echo "$pids1" | perl -pe 's| *'"$PARENT"'||g'`"
fi
pids1="$cpids$pids1"
PS="ps -f $pids1"
- FUSER="fuser -v"
+ if [ "$FUSER" ]
+ then FUSER_V='fuser -v'
+ else FUSER_V=''
+ fi
;;
IRIX|IRIX64)
- pids0="`fuser -q $files`"
+ if [ "$FUSER" ]
+ then pids0="`fuser -q $files`"
+ else pids0=''
+ fi
pids0="`echo "$pids0" | perl -pe 's|,*'"$CHILD"'||g'`"
if [ "$PARENT" ] ; then
pids0="`echo "$pids0" | perl -pe 's|,*'"$PARENT"'||g'`"
@@ -118,10 +132,16 @@
pids0="`echo $cpids | perl -pe 's| +|,|g'`${pids0#,}"
pids1="`echo $pids0 | perl -pe 's|,| |g'`"
PS="ps -fp $pids0"
- FUSER="fuser"
+ if [ "$FUSER" ]
+ then FUSER_V='fuser'
+ else FUSER_V=''
+ fi
;;
SunOS)
- pids1="`fuser $files 2>/dev/null`"
+ if [ "$FUSER" ]
+ then pids1="`fuser $files 2>/dev/null`"
+ else pids1=''
+ fi
pids1="`echo "$pids1" | perl -pe 's| *'"$CHILD"'||g'`"
if [ "$PARENT" ] ; then
pids1="`echo "$pids1" | perl -pe 's| *'"$PARENT"'||g'`"
@@ -129,7 +149,10 @@
pids1="$cpids$pids1"
pids0="`echo $pids1 | perl -pe 's| +|,|g'`"
PS="ps -fp $pids0"
- FUSER="fuser"
+ if [ "$FUSER" ]
+ then FUSER_V='fuser'
+ else FUSER_V=''
+ fi
;;
# CYGWIN32_NT)
# ;;
@@ -145,7 +168,9 @@
echo pids1=$pids1 >&2
echo pids2=$pids2 >&2
LOG1x $PS
- LOG1x $FUSER $files
+ if [ "$FUSER_V" ] ; then
+ LOG1x $FUSER_V $files
+ fi
#LOG1x fuser -k $files
LOG1x kill $pids1
if [ "$cpids" ] ; then
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins