• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unix Signals Delivered from Quitting Cocoa Apps?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unix Signals Delivered from Quitting Cocoa Apps?


  • Subject: Re: Unix Signals Delivered from Quitting Cocoa Apps?
  • From: aaron smith <email@hidden>
  • Date: Mon, 13 Sep 2010 02:54:48 -0700

One more note about this. It does work as expected. But I am going to
take out the dependency of having that hardcoded "1" parameter - which
the child looks for so it only runs the cocoa app. I'll probably
change it to use named pipes. Then it won't depend on having arguments
correct.

On Mon, Sep 13, 2010 at 2:24 AM, aaron smith
<email@hidden> wrote:
> Thanks for the suggestions!
>
> Yeah sorry I was getting around to fixing that return NSApplication thing.
>
> here's another version that avoids higher level framework usage..
>
> http://pastebin.com/20W1ZD8r
>
> Does that look better?
>
>
> On Mon, Sep 13, 2010 at 1:38 AM, Ken Thomases <email@hidden> wrote:
>> 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

  • Follow-Ups:
    • Re: Unix Signals Delivered from Quitting Cocoa Apps?
      • From: aaron smith <email@hidden>
References: 
 >Unix Signals Delivered from Quitting Cocoa Apps? (From: aaron smith <email@hidden>)
 >Re: Unix Signals Delivered from Quitting Cocoa Apps? (From: Ken Thomases <email@hidden>)
 >Re: Unix Signals Delivered from Quitting Cocoa Apps? (From: aaron smith <email@hidden>)
 >Re: Unix Signals Delivered from Quitting Cocoa Apps? (From: Ken Thomases <email@hidden>)
 >Re: Unix Signals Delivered from Quitting Cocoa Apps? (From: aaron smith <email@hidden>)

  • Prev by Date: MediaPlayer.framework causing Core Data migration errors
  • Next by Date: Problem managing BLOB containing images
  • Previous by thread: Re: Unix Signals Delivered from Quitting Cocoa Apps?
  • Next by thread: Re: Unix Signals Delivered from Quitting Cocoa Apps?
  • Index(es):
    • Date
    • Thread