Eric Clark > Linux-Pdeathsig-0.10 > Linux::Pdeathsig

Download:
Linux-Pdeathsig-0.10.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.10   Source  

NAME ^

Linux::Pdeathsig - Perl interface to request a signal on parent death

SYNOPSIS ^

  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

DESCRIPTION ^

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.

EXPORTS ^

set_pdeathsig, get_pdeathsig by default.

SEE ALSO ^

prctl(2) Linux man page.

AUTHOR ^

Eric Clark, <zerohp@cpan.org>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: