Skip to content

Commit 5d3bbc6

Browse files
AddisonGcvicentiu
authored andcommitted
MDEV-29222 - Fix mysqld_safe script
The mysqld_safe script was using bad grep options. The line that was fixed was likely meant to be 2 separate grep commands, piped into each other, with each one removing any lines that matched. The `-E` option was unneeded, as the command is not using regex.
1 parent c980350 commit 5d3bbc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ IF(UNIX)
146146
# FIND_PROC and CHECK_PID are used by mysqld_safe
147147
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
148148
SET (FIND_PROC
149-
"ps wwwp $PID | grep -vE mariadbd-safe -vE mysqld_safe | grep -- $MYSQLD > /dev/null")
149+
"ps wwwp $PID | grep -v mariadbd-safe | grep -v mysqld_safe | grep -- $MYSQLD > /dev/null")
150150
ENDIF()
151151
IF(NOT FIND_PROC AND CMAKE_SYSTEM_NAME MATCHES "SunOS")
152152
SET (FIND_PROC

0 commit comments

Comments
 (0)