From 81e869bcf2dd2d4a4d534e2fc73a85a906cc5e4e Mon Sep 17 00:00:00 2001
From: unknown <lenz@mysql.com>
Date: Thu, 15 Jan 2004 16:14:30 +0100
Subject: [PATCH]  - fixed early removing of socket file when multiple
 instances of mysqld are    started via mysqld_safe (BUG#2114) Thanks to
 Rodrigo Marchant for the    suggestion

scripts/mysqld_safe.sh:
   - fixed early removing of socket file when multiple instances of mysqld are
     started via the script (BUG#2114) Thanks to Rodrigo Marchant for the
     suggestion
---
 scripts/mysqld_safe.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index 5d77863c9b4..0f415ccd5f0 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -115,7 +115,6 @@ else
   ledir=@libexecdir@
 fi
 
-safe_mysql_unix_port=${mysql_unix_port:-${MYSQL_UNIX_PORT:-@MYSQL_UNIX_ADDR@}}
 user=@MYSQLD_USER@
 niceness=0
 
@@ -155,6 +154,7 @@ then
 fi
 parse_arguments `$print_defaults --loose-verbose $defaults mysqld_safe safe_mysqld`
 parse_arguments PICK-ARGS-FROM-ARGV "$@"
+safe_mysql_unix_port=${mysql_unix_port:-${MYSQL_UNIX_PORT:-@MYSQL_UNIX_ADDR@}}
 
 if test ! -x $ledir/$MYSQLD
 then
-- 
2.30.9