Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|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

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.