Re: [RE] How to kill/restart a HTTP::Daemon perl script properly.
Karen Etheridge <[email protected]> Thu, 4 Jun 2020 16:28:23 -0700
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <CAPJsHfC2tK3ZYsREcnQq-c_ewumeB6+aCmZ-SW3C5MXsVnqWTw@mail.gmail.com> |
--0000000000002c3f4405a74a811d Content-Type: text/plain; charset="UTF-8" Please don't link to sites that violate copyrights. That is a pirated copy of the book. On Wed, Jun 3, 2020 at 8:42 AM Bernard CLABOTS via libwww <[email protected]> wrote: > 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 > > > > --0000000000002c3f4405a74a811d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-size:small"><br></div></div><div style=3D"font-size:small" class=3D"gmail= _default">Please don't link to sites that violate copyrights.=C2=A0 Tha= t is a pirated copy of the book.<br></div><br><div class=3D"gmail_quote"><d= iv dir=3D"ltr" class=3D"gmail_attr">On Wed, Jun 3, 2020 at 8:42 AM Bernard = CLABOTS via libwww <<a href=3D"mailto:[email protected]">[email protected]</= a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0p= x 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><d= iv><div style=3D"font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font= -size:16px"><div dir=3D"ltr"><div><div dir=3D"ltr">Hi,</div><div dir=3D"ltr= ">=C2=A0=C2=A0 Maybe this helps:</div><div dir=3D"ltr"><a href=3D"https://d= ocstore.mik.ua/orelly/perl4/lperl/ch14_07.htm" rel=3D"nofollow" target=3D"_= blank"><span class=3D"gmail_default" style=3D"font-size:small">---</span></= a></div><div><br></div><div dir=3D"ltr">I think you can "catch" t= he signal sent by system to cleanly exit.<br><br>Maybe you can then combine= this with the following:<br><div><a href=3D"https://perldoc.perl.org/funct= ions/kill.html" rel=3D"nofollow" target=3D"_blank">https://perldoc.perl.org= /functions/kill.html</a></div><div><br></div><div dir=3D"ltr">That should a= llow you to remove the child 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><di= v><br></div></div></div></div></blockquote></div></div> --0000000000002c3f4405a74a811d--