Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: poll and stdin




On Apr 18, 2006, at 17:56 , Ian Lister wrote:

On Tue, 18 Apr 2006, Michael Tuexen wrote:
Is it a feature or a bug of Tiger that poll() does not support stdin?

It's an unfortunate but known bug in Tiger, introduced by switching poll() from an underlying select-based mechanism to a kqueue-based mechanism. Kqueue in OS X does not work on devices such as terminals (regardless of what file descriptor they're assigned). There's an issue with binary compatibility inside the kernel that prevented it being fixed in Tiger, but hopefully it can be sorted in Leopard because it's an ongoing headache.

Is that why the POLLNVAL bit is set on return?

Regards,

Justin

--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >poll and stdin (From: Michael Tuexen <email@hidden>)
 >Re: poll and stdin (From: Ian Lister <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.