• 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: poll and stdin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: poll and stdin


  • Subject: Re: poll and stdin
  • From: "Justin C. Walker" <email@hidden>
  • Date: Tue, 18 Apr 2006 20:16:08 -0700


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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: poll and stdin
      • From: Ian Lister <email@hidden>
References: 
 >poll and stdin (From: Michael Tuexen <email@hidden>)
 >Re: poll and stdin (From: Ian Lister <email@hidden>)

  • Prev by Date: Re: poll and stdin
  • Next by Date: Re: poll and stdin
  • Previous by thread: Re: poll and stdin
  • Next by thread: Re: poll and stdin
  • Index(es):
    • Date
    • Thread