Check whether the waiting process is alive

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