• 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: "Stephen J. Butler" <email@hidden>
  • Date: Mon, 13 Sep 2010 03:26:36 -0500

On Mon, Sep 13, 2010 at 3:05 AM, aaron smith
<email@hidden> 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.
>
> AH! I totally missed that I need to use an int to store the child exit
> status info.
>
> Here's a version that works now..
>
> http://pastebin.org/860040

You really shouldn't use the result of -[NSString UTF8String] past the
lifetime of the object itself. Either do a strcpy real quick, or use
-[NSString maximumLengthOfBytesUsingEncoding:] with -[NSString
getCString:maxLength:encoding:]
_______________________________________________

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

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>)

  • Prev by Date: Re: Unix Signals Delivered from Quitting Cocoa Apps?
  • Next by Date: Re: Unix Signals Delivered from Quitting Cocoa Apps?
  • 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