Changeset 50787 in vbox for trunk/src/VBox
- Timestamp:
- Mar 14, 2014 1:15:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/vboxconfig.sh
r50519 r50787 47 47 BIN_ID=/usr/bin/id 48 48 BIN_PKILL=/usr/bin/pkill 49 BIN_PGREP=/usr/bin/pgrep 49 50 50 51 # "vboxdrv" is also used in sed lines here (change those as well if it ever changes) … … 203 204 if test ! -x "$BIN_PKILL"; then 204 205 BIN_PKILL=`find_bin_path "$BIN_PKILL"` 206 fi 207 208 if test ! -x "$BIN_PGREP"; then 209 BIN_PGREP=`find_bin_path "$BIN_PGREP"` 205 210 fi 206 211 } … … 837 842 fi 838 843 839 procname= $1840 procpid=`ps -eo pid,fname | grep $procname | grep -v grep | awk '{ print $1 }'`841 if test ! -z "$procpid" && test "$procpid" -ge0; then844 procname="$1" 845 $BIN_PGREP "$procname" > /dev/null 2>&1 846 if test "$?" -eq 0; then 842 847 return 1 843 848 fi … … 855 860 fi 856 861 857 # @todo use is_process_running() 858 procname=$1 859 procpid=`ps -eo pid,fname | grep $procname | grep -v grep | awk '{ print $1 }'` 860 if test ! -z "$procpid" && test "$procpid" -ge 0; then 862 procname="$1" 863 is_process_running "$procname" 864 if test "$?" -eq 1; then 861 865 $BIN_PKILL "$procname" 862 866 sleep 2 863 procpid=`ps -eo pid,fname | grep $procname | grep -v grep | awk '{ print $1 }'`864 if test ! -z "$procpid" && test "$procpid" -ge 0; then867 is_process_running "$procname" 868 if test "$?" -eq 1; then 865 869 subprint "Terminating: $procname ...FAILED!" 866 870 if test "$fatal" = "$FATALOP"; then
Note:
See TracChangeset
for help on using the changeset viewer.