From: Igor Maravic Date: Tue, 24 Sep 2013 11:47:39 +0000 (+0200) Subject: Clean up after DynListener crash X-Git-Tag: rec-3.6.0-rc1~343^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=233f08a1de5508ca4ee67de9bc90045c2cd0cf63;p=thirdparty%2Fpdns.git Clean up after DynListener crash When DynListener crashes, kill all processes from his parent PGRP. This way we'll certanly close the pdns.controlsocket (no more hanging pdns_control processes) and we'll kill the processes that aren't managable via pdns_control any more. --- diff --git a/pdns/dynlistener.cc b/pdns/dynlistener.cc index 0e80ab15bd..daec1d9dd3 100644 --- a/pdns/dynlistener.cc +++ b/pdns/dynlistener.cc @@ -199,6 +199,8 @@ void *DynListener::theListenerHelper(void *p) DynListener *us=static_cast(p); us->theListener(); L<d_ppid)<<") with it"<d_ppid),SIGKILL); return 0; }