fork within Cocoa application
Posted
by liuliu
on Stack Overflow
See other posts from Stack Overflow
or by liuliu
Published on 2010-04-25T08:10:00Z
Indexed on
2010/04/25
8:13 UTC
Read the original article
Hit count: 252
My problem is not the best scenario for fork(). However, this is the best func I can get.
I am working on a Firefox plugin on Mac OSX. To make it robust, I need to create a new process to run my plugin. The problem is, when I forked a new process, much like this:
if (fork() == 0) exit(other_main());
However, since the state is not cleaned, I cannot properly initialized my new process (call NSApplicationLoad etc.). Any ideas? BTW, I certainly don't want create a new binary and exec it.
© Stack Overflow or respective owner