List:Commits« Previous MessageNext Message »
From:Sergei Golubchik Date:August 7 2008 12:08pm
Subject:Re: bzr commit into mysql-5.0 branch (chad:2653) Bug#11122
View as plain text  
Hi!

On Aug 05, Chad MILLER wrote:
> #At file:///Users/cmiller/work/mysqlbzr/5.0-bugteam--bug11122/
> 
>  2653 Chad MILLER	2008-08-05
>       Bug#11122: Server won't always start when cold-booting after a crash
>       
>       The grep expression that finds a running "mysqld" program fails if the
>       "mysqld_safe" is running with the same PID.
....
> -if $PS p $$ 2> /dev/null | grep `echo $0 | sed s/\-//` > /dev/null
> +if $PS wwwwp $$ 2> /dev/null | grep -E -- "$0( |\$)" > /dev/null

I am afraid grep -E is not portable enough

Regards / Mit vielen Grüssen,
Sergei

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  Principal Software Engineer/Server Architect
/_/  /_/\_, /___/\___\_\___/  Sun Microsystems GmbH, HRB München 161028
       <___/                  Sonnenallee 1, 85551 Kirchheim-Heimstetten
Geschäftsführer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Häring
Thread
bzr commit into mysql-5.0 branch (chad:2653) Bug#11122Chad MILLER5 Aug
  • Re: bzr commit into mysql-5.0 branch (chad:2653) Bug#11122Sergei Golubchik7 Aug