A BUGNOTE has been added to this bug. ====================================================================== http://www.dbmail.org/mantis/bug_view_advanced_page.php?bug_id=0000158 ====================================================================== Reported By: ljackson Assigned To: paul ====================================================================== Project: DBMail Bug ID: 158 Category: General Reproducibility: always Severity: minor Priority: normal Status: assigned ====================================================================== Date Submitted: 13-Jan-05 02:32 CET Last Modified: 18-Jan-05 22:26 CET ====================================================================== Summary: a sig term to the root process e.g. the pid from the pidfile doesn't shutdown imapd/pop3d Description: On the curent and all releases I have tried so far with the preforking code in it (including cvs head). It seems that when I want to shutdown the dbmail deamons doing a kill `cat /var/run/dbmail-imapd.pid` ..etc. shows in the logs that the main handler got the TERM request it pushes it out to the children but they don't stop. some will go defunct but other will still keep running I have to end up doing a killall -9 <daemon> to get it to exit fully. If I kill -9 just the root pid it dies but the children remain. Paul & dbmail crew you all know normaly I would debug and figure this out myself but I don't have the time right now, thanks for looking into it, does anyone else see this same behavior? ======================================================================
---------------------------------------------------------------------- aaron - 13-Jan-05 02:50 CET ---------------------------------------------------------------------- I just tried it on my server, and I see similar messages but no zombies or other problem processes; everything shuts down as expected. Works For Me (TM)... ---------------------------------------------------------------------- ljackson - 13-Jan-05 03:16 CET ---------------------------------------------------------------------- humm, what os...etc are you on? Are you doing the fully installed product or from the compiled directory using the re-linking script like I am ( I need to do this for testing..etc.) ---------------------------------------------------------------------- paul - 15-Jan-05 00:07 CET ---------------------------------------------------------------------- Problem located :-) A big fixme in serverchild.c. Bad process cleanup. Fix pending . ---------------------------------------------------------------------- aaron - 15-Jan-05 00:15 CET ---------------------------------------------------------------------- If we need to spit out another quick release, let's do it as a letter off the end, like 2.0.3_a or something, so that it's clear that it's a sub-micro release and has no new anything except for bugfixes affecting some people. ---------------------------------------------------------------------- paul - 15-Jan-05 01:14 CET ---------------------------------------------------------------------- Leif, I've checked in a cleanup of manage_stop_children. Could you please test this for me. ---------------------------------------------------------------------- ljackson - 18-Jan-05 22:26 CET ---------------------------------------------------------------------- Paul, Sorry took me a bit to respond, yes this fix seems to work fine on my test system. I don't seem the zombies anymore after senging a kill to the root pid, and all processes exit cleanly. Thanks, Leif Bug History Date Modified Username Field Change ====================================================================== 13-Jan-05 02:32ljackson New Bug 13-Jan-05 02:50aaron Bugnote Added: 0000530 13-Jan-05 03:16ljackson Bugnote Added: 0000531 15-Jan-05 00:07paul Bugnote Added: 0000534 15-Jan-05 00:09paul ETA none => 2-3 days 15-Jan-05 00:09paul Assigned To => paul 15-Jan-05 00:09paul Projection none => minor fix 15-Jan-05 00:09paul Status new => assigned 15-Jan-05 00:15aaron Bugnote Added: 0000535 15-Jan-05 01:14paul Bugnote Added: 0000536 18-Jan-05 22:26ljackson Bugnote Added: 0000546 ======================================================================