spot/wrap
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
..
python Rework the timeout of the CGI script. 2012-06-04 18:41:36 +02:00
.cvsignore * wrap/Makefile.am, wrap/spot.i: Move ... 2003-07-31 12:20:49 +00:00
.gitignore Add .gitignore files 2008-03-14 16:59:32 +01:00
Makefile.am Make it possible not to build Python bindings. 2012-01-17 14:42:34 +01:00