Message149051
| Author |
mrmekon |
| Recipients |
mrmekon, ronaldoussoren |
| Date |
2011年12月08日.20:26:13 |
| SpamBayes Score |
0.00022666578 |
| Marked as misclassified |
No |
| Message-id |
<1323375974.18.0.406983892582.issue13558@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The multiprocessing package appears to spawn a new process by calling only fork(). Apple's CoreFoundation libraries (and possibly more, I do not know the full extent) *require* new processes to be spawned with the full fork()+exec*() combo.
When using PyObjC to access native Mac libraries, Python's multithreading library is not usable. The error thrown is:
------------------------
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
------------------------
Test code: https://gist.github.com/1448398 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年12月08日 20:26:14 | mrmekon | set | recipients:
+ mrmekon, ronaldoussoren |
| 2011年12月08日 20:26:14 | mrmekon | set | messageid: <1323375974.18.0.406983892582.issue13558@psf.upfronthosting.co.za> |
| 2011年12月08日 20:26:13 | mrmekon | link | issue13558 messages |
| 2011年12月08日 20:26:13 | mrmekon | create |
|