I've upgraded the script to the 1.6 version you have on your own website and added a bugfix#2
I've upgraded the script to the 1.6 version you have on your own website and added a bugfix#2sanderheijselaar wants to merge 2 commits intotimkay:masterfrom sanderheijselaar:master
Conversation
|
Why does a fork help? You run the code in a child process and wait for that child to finish. The original code execs the child process, which exits when it finishes. Seems to me it's the same effect without the extra process. Please explain the subtlety I am missing. |
|
I use your script on many of my servers but it failed on one server and I couldn't find out why. it happens in another process which starts something with solo. when this process ends, it also ends the solo process and because of that other command with solo and the same port are executed again. this only happens on one server, which has the same base image and puppet scripts as the other servers i have. This little tweak solved the problem. I hope my explaination is clear. |
|
I don't think I understand. You said that you are running identical My big issue is that I don't see how fork/wait would change the behavior, ...Tim On Fri, Apr 11, 2014 at 7:32 AM, sanderheijselaar
Tim Kay |
|
I have a php process that does a exec. This exec has the solo script in front so it will only run once. But when the php process stops, the solo scripts also stops and closes the bound socket. |
|
I missed something in your explanation. You said "I run multiple processes.... This only happens on one server." What you said before "This" does not indicate a problem. My read is that On Mon, Apr 14, 2014 at 4:54 AM, sanderheijselaar
Tim Kay |
No description provided.