summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2005-09-08 11:04:43 +0200
committerunknown <joerg@mysql.com>2005-09-08 11:04:43 +0200
commit796f5e00451d16f8be464722be9d5b00890366fc (patch)
tree756b3da507ec3ed81ee3a76cab3ea3807bd04e6b /configure.in
parent1f776a5a45f84dfb4c4e28ef618d7edf1ab048de (diff)
parenta46d6b0c0c05b5c6275abec1bd861105bd5b88f6 (diff)
downloadmariadb-git-796f5e00451d16f8be464722be9d5b00890366fc.tar.gz
Merge mysql.com:/M40/clone-4.0 into mysql.com:/M40/upward-4.0
configure.in: Auto merged include/my_global.h: Auto merged
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 10 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index c473fb21dbd..a9ac26a3579 100644
--- a/configure.in
+++ b/configure.in
@@ -447,30 +447,33 @@ PS=$ac_cv_path_PS
# Linux style
if $PS p $$ 2> /dev/null | grep $0 > /dev/null
then
- FIND_PROC="$PS p \$\$PID | grep mysqld > /dev/null"
+ FIND_PROC="$PS p \$\$PID | grep -v grep | grep mysqld > /dev/null"
# Solaris
elif $PS -fp $$ 2> /dev/null | grep $0 > /dev/null
then
- FIND_PROC="$PS -p \$\$PID | grep mysqld > /dev/null"
+ FIND_PROC="$PS -p \$\$PID | grep -v grep | grep mysqld > /dev/null"
# BSD style
elif $PS -uaxww 2> /dev/null | grep $0 > /dev/null
then
- FIND_PROC="$PS -uaxww | grep mysqld | grep \" \$\$PID \" > /dev/null"
+ FIND_PROC="$PS -uaxww | grep -v grep | grep mysqld | grep \" \$\$PID \" > /dev/null"
# SysV style
elif $PS -ef 2> /dev/null | grep $0 > /dev/null
then
- FIND_PROC="$PS -ef | grep mysqld | grep \" \$\$PID \" > /dev/null"
+ FIND_PROC="$PS -ef | grep -v grep | grep mysqld | grep \" \$\$PID \" > /dev/null"
# Do anybody use this?
elif $PS $$ 2> /dev/null | grep $0 > /dev/null
then
- FIND_PROC="$PS \$\$PID | grep mysqld > /dev/null"
+ FIND_PROC="$PS \$\$PID | grep -v grep | grep mysqld > /dev/null"
else
case $SYSTEM_TYPE in
+ *freebsd*)
+ FIND_PROC="$PS p \$\$PID | grep -v grep | grep mysqld > /dev/null"
+ ;;
*darwin*)
- FIND_PROC="$PS -uaxww | grep mysqld | grep \" \$\$PID \" > /dev/null"
+ FIND_PROC="$PS -uaxww | grep -v grep | grep mysqld | grep \" \$\$PID \" > /dev/null"
;;
*cygwin*)
- FIND_PROC="$PS -e | grep mysqld | grep \" \$\$PID \" > /dev/null"
+ FIND_PROC="$PS -e | grep -v grep | grep mysqld | grep \" \$\$PID \" > /dev/null"
;;
*netware* | *modesto*)
FIND_PROC=