I wanted to point you to some code, by ant9000 at $Socket->connected Not Returning False? where he shows how to test $! for socket error codes like EAGAIN. Do you think those sorts of tests on a select socket would be able to detect your "eternal a" script, and dispose of it?