fork within Cocoa application

前端 未结 3 972
隐瞒了意图╮
隐瞒了意图╮ 2021-01-06 01:59

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 c

3条回答
  •  长发绾君心
    2021-01-06 02:38

    I'm writing the FreeWRL plugin for Firefox (Linux at the moment, Mac & Windows soon).

    http://freewrl.sourceforge.net/

    It's based on fork+exec to launch FreeWRL and swallow its window into Firefox.

    You'll have to use a pipe to correctly handle the possible failure of fork+exec or the failure of your child process :

    How to handle execvp(...) errors after fork()?

    Cheers, C

提交回复
热议问题