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

[email protected] (Bernard CLABOTS via libwww)
Newsgroups perl.libwww
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.