Re: Unix Signals Delivered from Quitting Cocoa Apps?
Re: Unix Signals Delivered from Quitting Cocoa Apps?
- Subject: Re: Unix Signals Delivered from Quitting Cocoa Apps?
- From: Ken Thomases <email@hidden>
- Date: Mon, 13 Sep 2010 03:38:21 -0500
On Sep 13, 2010, at 3:05 AM, aaron smith wrote:
> Thanks for pointing that I can't use high level frameworks in a child.
> I'll set up everything I need for the execvp call before the actual
> fork.
You haven't addressed the problem. I was not talking about the later fork(), but the first one. These two lines:
pid_t child = fork();
if(child==0) return NSApplicationMain(argc,(const char **)argv);
are untenable. You are running the bulk of the original application in a forked-but-not-exec'ed child process. Your whole approach to this issue is unworkable.
Sorry,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden