The arguments to use for ps on Mac OS X were mis-detected by the mysql_zap

utility. (Bug #41883, patch by Nicklas Westerlund)
This commit is contained in:
Jim Winstead 2009-05-07 17:53:03 -07:00
parent 337a20a800
commit 16ef088112

View file

@ -27,8 +27,8 @@ $opt_f= 0;
$opt_t= 0;
$opt_a = "";
$BSD = -f '/vmunix' || $ENV{"OS"} eq "SunOS4" || $^O eq 'darwin';
$LINUX = $^O eq 'linux';
$BSD = -f '/vmunix' || $ENV{"OS"} eq "SunOS4";
$LINUX = $^O eq 'linux' || $^O eq 'darwin';
$pscmd = $BSD ? "/bin/ps -auxww" : $LINUX ? "/bin/ps axuw" : "/bin/ps -ef";
open(TTYIN, "</dev/tty") || die "can't read /dev/tty: $!";