We don't bite newbies here... much | |
PerlMonks |
Re: My daemon will not restartby tirwhan (Abbot) |
on Feb 14, 2008 at 17:04 UTC ( [id://667972]=note: print w/replies, xml ) | Need Help?? |
You're not closing the open socket. The system may not yet have disassociated the open socket with your old process, and the new one will be unable to bind to it (you can't have two processes listening to the same TCP port). The subsequent die "Failed to restart daemon" will never be reached because it's after the exec. All dogma is stupid.
In Section
Seekers of Perl Wisdom
|
|