[Python-Dev] Signals, threads, blocking C functions (original) (raw)
Michael Hudson mwh at python.net
Wed Sep 13 10:14:42 CEST 2006
- Previous message: [Python-Dev] Signals, threads, blocking C functions
- Next message: [Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumented
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Martin v. Löwis" <martin at v.loewis.de> writes:
Michael Hudson schrieb:
According to [1], all python needs to do to avoid this problem is block all signals in all but the main thread;
Argh, no: then people who call system() from non-main threads end up running subprocesses with all signals masked, which breaks other things in very mysterious ways. Been there... Python should register a pthreadatfork handler then, which clears the signal mask. Would that not work?
Not for system() at least:
http://mail.python.org/pipermail/python-dev/2003-December/041303.html
Cheers, mwh
-- ROOSTA: Ever since you arrived on this planet last night you've been going round telling people that you're Zaphod Beeblebrox, but that they're not to tell anyone else. -- The Hitch-Hikers Guide to the Galaxy, Episode 7
- Previous message: [Python-Dev] Signals, threads, blocking C functions
- Next message: [Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumented
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]