On 21.04.2007 18:03, Elliott Hird wrote:
> I have this code:
> 
> Process.waitpid(fork { exec "stuff" })
> 
> Outside of the fork, how can i detect various signals sent to stuff?
> SIGSEV, etc.

IIRC you can detect signals only from within the process that receives 
those signals.  So "stuff" would have to do it.  If you want to 
interfere with this you need to make sure that whoever sends those 
signals sends them to the parent or some kind of proxy which can do 
anything with them (including forwarding to the child).

I believe the only way to influence this from the outside is when 
signals are set to "ignore".  The child will inherit the ignoring even 
after exec.

Kind regards

	robert