Title: Calling sys.exit() in a spawned thread fails to exit.
Type: behaviour Severity: normal
Components: Core Versions: 2.5b1
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: colinhevans, pjenvey
Priority: Keywords:

Created on 2009-04-07.23:48:03 by colinhevans, last changed 2009-04-08.01:29:50 by pjenvey.

msg4476 (view) Author: Colin Evans (colinhevans) Date: 2009-04-07.23:48:02
Calling sys.exit() in a thread spawned through the thread module causes
the thread to exit, but doesn't cause the interpreter to exit.

The problem appears to be in org.python.core.FunctionThread - the
Py.SystemExit exception is caught and identified here, but nothing is
done.  Perhaps it should call java.lang.System.exit() with the
appropriate exit code?  Maybe it should call the Python atexit functions
msg4479 (view) Author: Philip Jenvey (pjenvey) Date: 2009-04-08.01:29:50
Not a bug: this matches the CPython behavior
Date User Action Args
2009-04-08 01:29:50pjenveysetstatus: open -> closed
resolution: invalid
messages: + msg4479
nosy: + pjenvey
2009-04-07 23:48:03colinhevanscreate