Subject: Developers of Sympa
List archive
- From: IKEDA Soji <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-developpers] Sympa and croak
- Date: Fri, 7 Dec 2012 20:23:16 +0900
David,
On Fri, 07 Dec 2012 11:03:07 +0100
David Verdin <address@concealed> wrote:
> Hi guys,
>
> I see an alarmingly growing number of croak calls in the Sympa code. I
> think I misunderstand what this function does.
> As far as I understand it, it simply kills the program after having
> issued a last log. However, it looks like Sympa doesn't die any time
> corak is called, so I think I don't fully understand what exactly is the
> effect of croak.
>
> In which cases, in our code, will croak actually kill the process?
> Because we must not kill our processes on errors. Errors will happen all
> the time. We must warn users, send mail, but never kill the processes,
> except if they can't access vital ressources, such as database.
Are you by any chance talking about $SIG{__DIE__} hook I added?
(see bottom of src/lib/Site.pm) This hook is called anytime
process is dying (either by "die" or by "croak"), does some extra
works, and then really dies.
On current Sympa-6.2, dying processes output traceback to STDERR
and (if possible) to syslog. I believe debugging of the sudden
deaths will be made easier.
> Best regards,
>
> David
Regarads,
--- Soji
--
株式会社 コンバージョン セキュリティ&OSSソリューション部 池田荘児
〒231-0004 神奈川県横浜市中区元浜町3-21-2 ヘリオス関内ビル7F
e-mail address@concealed TEL 045-640-3550
http://www.conversion.co.jp/
-
[sympa-developpers] Sympa and croak,
David Verdin, 12/07/2012
- Re: [sympa-developpers] Sympa and croak, Guillaume Rousse, 12/07/2012
-
Re: [sympa-developpers] Sympa and croak,
IKEDA Soji, 12/07/2012
-
Re: [sympa-developpers] Sympa and croak,
Guillaume Rousse, 12/07/2012
- Re: [sympa-developpers] Sympa and croak, David Verdin, 12/11/2012
-
Re: [sympa-developpers] Sympa and croak,
Guillaume Rousse, 12/07/2012
Archive powered by MHonArc 2.6.19+.