Ticket #283 (new defect)

Opened 4 years ago

Last modified 4 years ago

os._exit hangs app

Reported by: ghazel Owned by: ianb
Priority: normal Milestone: 1.4.1
Component: paste Version: released-version
Severity: normal Keywords:
Cc:

Description

Calling os._exit from a child thread to force the process to exit does not work in python < 2.5.1 (failed on 2.3, 2.4.4, passed on 2.5.1). The common case of the main thread being inside accept() causes this hang. Example attached.

If paste is still supporting python 2.4, some other mechanism should be used to stop the process.

Attachments

test_exit.py Download (457 bytes) - added by ghazel 4 years ago.

Change History

Changed 4 years ago by ghazel

Changed 4 years ago by ianb

This was developed primarily on Python 2.4. What platform are you using?

The test works for my with Python 2.4 on Ubuntu.

Changed 4 years ago by ghazel

Python 2.4.4 (#2, Apr 5 2007, 20:11:18) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2

Note: See TracTickets for help on using tickets.