• 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 interactive question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask interactive question


  • Subject: Re: NSTask interactive question
  • From: Chris Suter <email@hidden>
  • Date: Thu, 30 Nov 2006 09:57:29 +1100


On 30/11/2006, at 9:45 AM, Shawn Erickson wrote:

On 11/29/06, Chris Suter <email@hidden> wrote:

One thing to be wary of (although it might not occur in your case), is that
both writeData and availableData can block if there isn't sufficient buffer
space.

How can availableData block if the pipe it is reading from becomes full?

You're quite right, obviously it can't. It can block when there is no data. Anyway, that's irrelevant. My point still stands, I believe you could still get the deadlock: writeData blocks on a full buffer & puts or stdout.flush in Ruby blocks waiting on a full buffer.


- Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Re: NSTask interactive question
      • From: "Shawn Erickson" <email@hidden>
References: 
 >NSTask interactive question (From: Matt Neuburg <email@hidden>)
 >Re: NSTask interactive question (From: "Shawn Erickson" <email@hidden>)
 >Re: NSTask interactive question (From: Chris Suter <email@hidden>)
 >Re: Re: NSTask interactive question (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: how to stop a thread that's in a blocking call from the main thread
  • Next by Date: Re: Re: NSTask interactive question
  • Previous by thread: Re: Re: NSTask interactive question
  • Next by thread: Re: Re: NSTask interactive question
  • Index(es):
    • Date
    • Thread