Bug #72509 | mysql_ping spins when mysqld is stopped via SIGSTOP | ||
---|---|---|---|
Submitted: | 1 May 2014 22:18 | Modified: | 5 May 2014 14:18 |
Reporter: | John Moore | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S2 (Serious) |
Version: | 5.5.37, 5.1.73 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[1 May 2014 22:18]
John Moore
[1 May 2014 23:17]
John Moore
Looking at this again, it seems that a check for EINTR was inserted which trumps the retry_count check and keeps on trying forever. Perhaps a better fix would be to add a retry_count_for_EINTR and allow for "n" retries of this kind? Alternatively, perhaps a mysql_ping_without_eintr_retry() function is needed so it can be called without having this problem.