Linux::Pdeathsig - Perl interface to request a signal on parent death
use Linux::Pdeathsig; set_pdeathsig(9); # now you will get SIGKILL when the parent process ends my $v = &get_pdeathsig; # get the signal that will be sent when the parent process ends
This simple module provides two functions to set or get the signal that the linux kernel will send when the parent process dies. get_pdeathsig returns 0 when no signal has been set. set_pdeathsig(0) will clear the setting. Both functions croak on error.
set_pdeathsig, get_pdeathsig by default.
prctl(2) Linux man page.
Eric Clark, <firstname.lastname@example.org>
Copyright (C) 2010 by Eric Clark
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.