summaryrefslogtreecommitdiff
path: root/scripts/mysqld_safe.sh
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-03-06 19:53:31 +0200
committermonty@hundin.mysql.fi <>2002-03-06 19:53:31 +0200
commitfa38c84be7d989edd97e84c85904137cef3c70d4 (patch)
tree2b4665ab89a9c440f5e2f451d1d745df1c15288d /scripts/mysqld_safe.sh
parent4508fbb558b793cd23d7bb6a77b135130c071d88 (diff)
parent668d09cc5c4e0c9e7c180f2dfb521244f325cf3f (diff)
downloadmariadb-git-fa38c84be7d989edd97e84c85904137cef3c70d4.tar.gz
merge
Diffstat (limited to 'scripts/mysqld_safe.sh')
-rw-r--r--scripts/mysqld_safe.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index 5504d929ede..e6ecbf6f729 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -291,7 +291,7 @@ do
I=1
while test "$I" -le "$numofproces"
do
- PROC=`ps xa | grep $ledir/$MYSQLD | grep -v "grep" | tail -1`
+ PROC=`ps xa | grep $ledir/$MYSQLD | grep -v "grep" | sed -n '$p'`
for T in $PROC
do
break