develooper Front page | perl.libwww | Postings from June 2020

[RE] How to kill/restart a HTTP::Daemon perl script properly.

Thread Next
From:
Bernard CLABOTS via libwww
Date:
June 3, 2020 15:42
Subject:
[RE] How to kill/restart a HTTP::Daemon perl script properly.
Message ID:
1206506625.3809656.1591198932117@mail.yahoo.com
Hi,   Maybe this helps:https://docstore.mik.ua/orelly/perl4/lperl/ch14_07.htm
I think you can "catch" the signal sent by system to cleanly exit.

Maybe you can then combine this with the following:
https://perldoc.perl.org/functions/kill.html
That should allow you to remove the child processes as well if you maintain an internal list of their pid's.

I hope that helps.
Bernard




Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About