Under Leopard, using Mac::Carbon:
[pudge@bourque ~]$ happening
Running background process/Users/pudge/bin/happening (983)
The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___ YOU_MUST_EXEC__() to debug.
Apparently, fork-without-exec with CoreFoundation has always been bad. But it is now an exception.
So in the happening program, I had:
$pid = fork;
exit if $pid;
Now I have:
if (!$nofork) {
$pid = fork;
exit if $pid;
exec($0, '-nofork');
}
YMMV.
Mac (Score:2)
The Mac as a development platform is Just. Not. That. Good.
Re: (Score:2)
Re: (Score:1)