in reply to catch hup, restart

You could also use POSIX::sigsuspend to wait for a signal to arrive instead of making loop with sleep.

--
Ilya Martynov (http://martynov.org/)