Comment 1 for bug 735477

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 735477] [NEW] some imports survive a kill -SIGTERM leading to massive log output and no kill

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 3/15/2011 2:50 PM, Vincent Ladeuil wrote:
> Public bug reported:
>
> Now that we have a time quota check, we try to kill the imports that
> exceed their quota.
>
> It turns out nexuiz-data couldn't be killed and we kept trying.
>
> I couldn't kill the import either with -15 (SIGTERM hoping to get a
> traceback) so I had to -9 (SIGKILL) it manually.
>
> The mass_import script should probably do the same.
>
> I don't have a good answer for the failure recording in that case since
> the process won't produce a meaning full output so we probably should
> rely on log analysis there.

If it is in swap death, or dying inside a C function, then SIGTERM and
SIGINT won't work (AIUI). If we know what function it was dying in (and
it is one of ours), we could add a call to the Python "check if there
are pending signals" function. With some tricks to watch out for GIL issues.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1/fqUACgkQJdeBCYSNAANzOgCfeCwCg6gwYIQfoDC4uTIVn+t4
YpgAn35QdL1wwtztUFFHzhov4y4kAyIZ
=6gUI
-----END PGP SIGNATURE-----