in reply to Re: Re: Daemonization of IO::Socket Script
in thread Daemonization of IO::Socket Script
I think you might want to nix the
$sock->close;
in your while loop. I don't think you want that call at all, and that it's causing the strange behavior. What it might be doing is signalling to the OS that you're no longer interested in that file descriptor, and then when the child process dies, the descriptor gets cleaned up, and causes the parent process to no longer enter the while loop, thus giving you a very tight, do-nothing loop in the until. That's the only collection of assertions I can make that would seem to describe your script's behavior.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Daemonization of IO::Socket Script
by landonc (Novice) on Aug 08, 2003 at 20:27 UTC |