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.
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden