I stopped a php program by ctrl-z, and bg 1 right away, but the connection seems not valid any more.

Isn't sleep supposed to restore all resources correctly?

link|improve this question
Shore, this belongs on Serverfault. – Aiden Bell Jun 13 '09 at 1:35
Also a bit of Google would help. A quick search of "PHP MySQL sleep" uncovered alot of answers. – Aiden Bell Jun 13 '09 at 1:52
feedback

1 Answer

The local state is preserved when you stop a process, but the state of remote resources obviously cannot be maintained. If the remote MySQL instance times out the connection you need to reconnect.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown