On Wed, Feb 11, 2015 at 6:31 PM, René J.V. <[email protected]> wrote:

> I take that to mean that doing fork() doesn't oblige you to do an exec()
> afterwards, it's that you cannot do a fork() from a process that's not been
> started through exec.


I will guess that this is related to the fact that such processes are
actually started by launchd, and must play by launchd's rules (including
not using fork()) so launchd can keep track of them. This would also imply
that fork() is actually acceptable as long as the forked processes don't
try to use the UI, but are merely background worker processes that
communicate with the foreground process if they need UI interaction or etc.

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to