[Twisted-Python] _twistd_unix.py / daemonize() / OSX / USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

Erik van Blokland erik at letterror.com
Wed Oct 13 12:05:15 EDT 2010

On Oct 13, 2010, at 5:52 PM, Phil Mayers wrote:

> Other info indicates this is Apple trying to be clever and "protect" 
> applications from some signal handling issues surrounding fork() with 
> libraries which aren't safe in that situation; presumably these are 
> MacOS-specific libraries?
> If this really is true, then MacOS X is no longer posix-compliant in 
> those circumstances, and Twisted is going to need some work :o(
> Can you share more details about the application; the context in which 
> it is started, and which system libraries it's likely to load?

Here's a compact version. The script uses OSX' Quartz to create and manipulate images. Twisted is used to wrap it as a webserver, images are served. More pointers on how to start and use it in the script itself.

The real application is more complex, it renders images for sites like this:

Zip contains 1 test image, 1 script and a sample result image.
Running in no-daemon mode (the -n option) prevents the crash, but causes other issues.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: twisted_quartz_test.zip
Type: application/zip
Size: 82474 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20101013/dbe578f2/attachment-0001.zip 
-------------- next part --------------


More information about the Twisted-Python mailing list