spot/wrap/python
Alexandre Duret-Lutz 7b7a946485 Rework the timeout of the CGI script.
The previous implementation was fine to catch timeout of third-party
tools (like dot), but to good to catch timeout in Spot itself, because
Python will not deliver a SIGALRM while a native function (e.g. Spot's
translation) is running.  So we fork() the Python process, with a
parent that does nothing but wait for the termination of the child or
for an alarm.  On SIGALRM, the parent kills all children.

* wrap/python/ajax/spot.in: Adjust to fork.
* wrap/python/tests/alarm.py: New test file to test this
scenario in a more controled environment.
* wrap/python/tests/Makefile.am: Add it.
2012-06-04 18:41:36 +02:00
..
ajax Rework the timeout of the CGI script. 2012-06-04 18:41:36 +02:00
tests Rework the timeout of the CGI script. 2012-06-04 18:41:36 +02:00
.cvsignore Update to SWIG 1.3.22. 2004-09-20 16:35:46 +00:00
.gitignore more files to ignore 2011-01-27 21:47:47 +01:00
buddy.i Make all python code compatible with Python 2.x and Python 3.x. 2012-02-25 14:01:43 +01:00
Makefile.am Fix VPATH builds, now that hash.hh include _config.h 2011-12-18 12:56:44 +01:00
spot.i Export tgba_parse() to the python interface. 2012-05-23 11:59:58 +02:00