Commit 17e310ab authored by unknown's avatar unknown

Bug#16576 Patch to compile on GNU/Hurd (ps check in configure)

 - Thanks to Christian Hammers for the patch


configure.in:
  The configure check on how to run ps to get mysqld's $PID does not
  work on the Hurd, as the PPID is prepended with a - for login shells,
  thus making grep look for -bash, which it complains as an invalid
  argument.  Filtering out '-' from the ps output makes this work fine.
parent 6528be27
......@@ -454,7 +454,7 @@ AC_PATH_PROG(PS, ps, ps)
AC_MSG_CHECKING("how to check if pid exists")
PS=$ac_cv_path_PS
# Linux style
if $PS p $$ 2> /dev/null | grep $0 > /dev/null
if $PS p $$ 2> /dev/null | grep `echo $0 | sed s/\-//` > /dev/null
then
FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
# Solaris
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment