Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

SIGHUP with Proc::Daemon

by jaandy (Acolyte)
on Mar 09, 2012 at 18:39 UTC ( [id://958776]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $SIG{HUP}  = sub {
      if (defined $log)
    ...
      $log->print("pid = $$\n");
      $log->autoflush(1);
    };
    
  2. or download this
    #!/usr/bin/perl
    
    ...
      print "sleeping\n";
      sleep(1);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://958776]
Approved by Eliya
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-23 21:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found