Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Give me some info about REAPER

Tags:

perl

I a perl code have seen the REAPER has used as a signal handler for SIGCHLD signal .

$SIG{CHLD} = \&REAPER;

The function also not defined in the code . Can any one deeply explain the internal operation on the `REAPER` .

Thanks in advance.

like image 402
karthi_ms Avatar asked Nov 25 '25 16:11

karthi_ms


2 Answers

  • Read : PerlIPC-Perl interprocess communication (signals, fifos, pipes, safe subprocesses, sockets, and semaphores).

  • Read: "Reaping Zombies" from Chapter 16.01 in "Perl Programming third Edition" by Larry Wall

like image 156
Nikhil Jain Avatar answered Nov 27 '25 07:11

Nikhil Jain


    All Our perls have run
    Here but now they're hung
    Children don't fear the reaper
    Nor Do the wind, the sun or the rain
    We can be like they are

    Come on process, Don't fear the Reaper
    Baby take My file, Don't fear the Reaper
    We'll be able to crash, Don't fear the Reaper
    Baby it's your code

REAPER is just a placeholder name for code you have to write yourself. See perlipc for more details.

like image 41
Eric Strom Avatar answered Nov 27 '25 05:11

Eric Strom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!