Closed chrisnicola closed 10 years ago
wouldn't it be bad if the thread was dead?
Not if the server was spawned as a process which I believe is what is happening when Guard is running. Either way it checks if the server is running. It either is or it isn't.
When I debug through what's happening using guard-teaspoon Rack::Server#start just returns true and so the thread completes and exits, however the server is still running.
Fair enough.. thanks for helping to clarify.
Depending on the rack_options passed into Rack::Server the thread may not stay running and can simply exit immediately. If that happens then this will always return false. I doesn't seem to be necessary to check the thread status before checking if the server is running via TCP so I've removed this check.