fork Cocoa process and re-init Cocoa. how?

后端 未结 1 1757
醉话见心
醉话见心 2021-01-15 18:14

I tried to fork() a Cocoa process and setup a new Cocoa/ObjC environment but I get the error:

The process has forked and you cannot use this Cor         


        
相关标签:
1条回答
  • 2021-01-15 19:01

    Mac OS X severely limits what you can do after a fork without execing. See the CAVEATS section of the fork man page. The allowed actions do not include using Cocoa or CoreFoundation, so you must call exec to start a new program.

    0 讨论(0)
提交回复
热议问题