|more useful options|
(delete) UDP and IO::Socketby toadi (Chaplain)
|on Jan 15, 2002 at 16:00 UTC||Need Help??|
toadi has asked for the
wisdom of the Perl Monks concerning the following question:
So as you see when there's a connect from a client, I need to start another proces.
1) client -> server -> start ./sleep
2) client -> server -> ./sleep still running -> don't wait
3) client -> server -> ./sleep still running -> don't wait
4) client -> server -> sleep not running? start ./sleep
=> for these 2 the server will start sleep 2 times in a row after they are finshed. This I don't want, I want ./sleep only to start when client connects and there is no other sleep running.
For the moment my existing codes makes sure only one ./sleep process is running at a time(thanks to spawning a child and a wait() in the parent). In case 2 and 3 there should never run a ./sleep. only when there is a new connect when there is no ./sleep running.