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

Phil Mayers p.mayers at imperial.ac.uk
Wed Oct 13 11:40:39 EDT 2010

On 13/10/10 15:55, Erik van Blokland wrote:
> The code calls fork(), but no exec():

fork() with no exec() is legal Unix.

Various googling led me to:


"""The problem is that OSX since version 10.6 (Snow Leopard) does NOT 
allow processes launched via Dock (not via exec) to use fork() function, 
which is one used by Gadu-Gadu resolver. And stuff that crashes is NOT 
main Adium process, but resolver GG process, that is killed by OS 
itself. """

If that's the case, I don't think twistd will work in that situation. 
twistd expects to be able to fork() (unless you give the "-n" argument 
to keep it in the foreground)

More information about the Twisted-Python mailing list