Check whether the waiting process is alive before send a connection to it.

Check whether the waiting process is alive before send a connection
to it.