[RE] How to kill/restart a HTTP::Daemon perl script properly.
[email protected] (Bernard CLABOTS via libwww) Wed, 3 Jun 2020 15:42:12 +0000 (UTC)
| Newsgroups | perl.libwww |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_3809655_1372289211.1591198932116 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,=C2=A0=C2=A0 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 ------=_Part_3809655_1372289211.1591198932116 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html><head></head><body><div class=3D"yahoo-style-wrap" style=3D"font-fami= ly:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div dir= =3D"ltr" data-setdir=3D"false"><div><div dir=3D"ltr">Hi,</div><div dir=3D"l= tr"> Maybe this helps:</div><div dir=3D"ltr"><a href=3D"https:/= /docstore.mik.ua/orelly/perl4/lperl/ch14_07.htm" class=3D"ydp262a90f8yiv679= 0159271" rel=3D"nofollow" target=3D"_blank">https://docstore.mik.ua/orelly/= perl4/lperl/ch14_07.htm</a></div><div><br></div><div dir=3D"ltr">I think yo= u can "catch" the signal sent by system to cleanly exit.<br><br>Maybe you c= an then combine this with the following:<br><div><a href=3D"https://perldoc= .perl.org/functions/kill.html" class=3D"ydp262a90f8yiv6790159271" rel=3D"no= follow" target=3D"_blank">https://perldoc.perl.org/functions/kill.html</a><= /div><div><br></div><div dir=3D"ltr">That should allow you to remove the ch= ild processes as well if you maintain an internal list of their pid's.<br><= br><div>I hope that helps.</div><div><br></div><div dir=3D"ltr">Bernard<br>= </div></div><div><br><br></div></div></div><div><br></div></div></div></bod= y></html> ------=_Part_3809655_1372289211.1591198932116--