There are various ways of doing this on Unix, but I'm not familiar with Windows. If you have a reliable fork(), one way is to just fork your program during startup and have the parent wait() or waitpid() for the child to die and respawn as need.
bluto
In reply to Re: Problem with using $SIG{__DIE__} to restart program
by bluto
in thread Problem with using $SIG{__DIE__} to restart program
by newrisedesigns
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |