in reply to Re: My daemon will not restart
in thread My daemon will not restart

This is a good suggestion. If you add:

$server = undef;
right before (or in) the call to &restart_daemon, things might work for you (at least they did in a stripped down version of your code.)

Replies are listed 'Best First'.
Re^3: My daemon will not restart
by graq (Curate) on Feb 15, 2008 at 09:15 UTC
    I have undefing $server, as well as explicitly undefing $server->{_sock}, but with no change in behaviour.

    -=( Graq )=-