• 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: NSTask stealth bug in readDataOfLength!! :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask stealth bug in readDataOfLength!! :(


  • Subject: Re: NSTask stealth bug in readDataOfLength!! :(
  • From: Thomas Engelmeier <email@hidden>
  • Date: Sun, 29 Oct 2006 22:16:41 +0100 (MET)

My guess is that what's probably happening is that your program is getting a signal (probably SIGCHILD or SIGPIPE or something), which is causing the read() call inside -readDataOfLength: to return prematurely with EINTR, hence the exception you're seeing. It's quite annoying that the -readData methods don't handle this better. I think in at least one place in our code we intentionally avoid using NSFileHandle's -read methods for this very reason.

It's straightforward to trigger by killing an running, lengthy async task and use something like the Moriarty sample code to read all data...


Regards,
Tom_E _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >NSTask stealth bug in readDataOfLength!! :( (From: "Theodore H. Smith" <email@hidden>)
 >Re: NSTask stealth bug in readDataOfLength!! :( (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Best practice question
  • Next by Date: Owner/Group changes depending on which volume you're booted from?
  • Previous by thread: Re: NSTask stealth bug in readDataOfLength!! :(
  • Next by thread: Re: NSTask stealth bug in readDataOfLength!! :(
  • Index(es):
    • Date
    • Thread