• Venkatesh Duggirala's avatar
    BUG#14726272- BACKPORT FIX FOR BUG 11746142 TO 5.5 AND 5.1 · ba97bcae
    Venkatesh Duggirala authored
    Details of BUG#11746142: CALLING MYSQLD WHILE ANOTHER 
    INSTANCE IS RUNNING, REMOVES PID FILE
    Fix: Before removing the pid file, ensure it was created
    by the same process, leave it intact otherwise.
    
    sql/mysqld.cc:
      delete_pid_file() introduced, which checks that the pid file
              belongs to the process before removing it
    ba97bcae
mysqld.cc 322 KB