6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Courier perlfilte...
FromSent OnAttachments
Michael CarmackApr 27, 2007 3:01 pm 
Sam VarshavchikApr 27, 2007 4:25 pm 
Michael CarmackApr 27, 2007 10:02 pm 
Sam VarshavchikApr 28, 2007 6:50 am 
Michael CarmackApr 28, 2007 9:39 am 
Sam VarshavchikApr 28, 2007 10:10 am.txt
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Courier perlfilter problem on 64-bit LinuxActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Apr 27, 2007 4:25:52 pm
List:net.sourceforge.lists.courier-users

Michael Carmack writes:

Oddly enough, the act of running an strace on the root perlfilter process seems to fix the problem. If I run strace on the root perlfilter _before_ trying to stop courierfilter, I never see any looping when I shut it down. And if I run strace on the root perlfilter process _after_ trying to stop courierfilter, while all of the rest of the perlfilter processes are respawning, then the respawning immediately stops and the courierfitler stops.

That sounds almost like when perlfilter's root parent process gets a signal, it doesn't really "get it", but as soon as it forks off a child process, the child process realizes that it just got signal and dies, then the parent just respawns it. And when you try to strace the root parent process, it realizes that it got a signal, and dies.

You said you've put together a custom kernel. Try a different major kernel version first, to see if you can reproduce the behavior.

The stop command first sends a SIGTERM, and if the lock file isn't released, that's followed by a SIGKILL after ten seconds. Presuming that your stop command never terminates, it's going to be sending SIGKILLs every ten seconds. strace the stop process, and see for yourself that it's sending SIGKILLs every ten seconds, to the same pid.