My problem is not the best fork () script. However, this is the best feature I can get.
I am working on a Firefox plugin on Mac OSX. To make it reliable, I need to create a new process to run my plugin. The problem is that when I forked a new process, like this:
if (fork() == 0) exit(other_main());
However, since the state is not cleared, I cannot correctly initialize my new process (call NSApplicationLoad, etc.). Any ideas? BTW, of course, I do not want to create a new binary file and execute it.
source share