in reply to Re: Process Reliablity
in thread Process Reliablity

That's an interesting solution, but it's likely to dump core. From perlipc:

Do as little as you possibly can in your [signal] handler ... because on most systems, libraries are not re-entrant; particularly, memory allocation and I/O routines are not. That means that doing nearly anything in your handler could in theory trigger a memory fault and subsequent core dump.

-Matt

Replies are listed 'Best First'.
RE: RE: Re: Process Reliablity
by lhoward (Vicar) on Jul 20, 2000 at 18:46 UTC
    Under normal situations that would be the case, but since my main program doesn't do anything other than sleep there are no non-reentrant pieces of code that could be interrupted by the dying process (causing a core dump). I have used this technique before and it has proven to be quite stable.