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

Re: kqueue and kevent


  • Subject: Re: kqueue and kevent
  • From: Jeffrey Walton <email@hidden>
  • Date: Sun, 13 Mar 2011 19:48:54 -0400

On Sun, Mar 13, 2011 at 3:15 PM, Dave Keck <email@hidden> wrote:
>> I have used kqueue and kevents for event triggering. However i am not sure
>> if it is possible to send events to a kqueue? Googling didnt  helped. I was
>> thinking as its "kernel" que and kernel notifies. Does it mean that users
>> can not send events
>> to a queue other than signals?
>
> The kernel is the only entity that can generate events. You can easily
> cause an event to be generated though by, for example, writing to a
> pipe for which the respective read end has a EVFILT_READ filter
> monitoring it.
>
Be careful of this sort of functionality, especially when an adversary
controls the event. In essence, the event should be consider
"untrusted user input".

Jeff
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: kqueue and kevent
      • From: Kyle Sluder <email@hidden>
References: 
 >kqueue and kevent (From: Abhinav Tyagi <email@hidden>)
 >Re: kqueue and kevent (From: Dave Keck <email@hidden>)

  • Prev by Date: SDK 10.6 with Target 10.5
  • Next by Date: Re: kqueue and kevent
  • Previous by thread: Re: kqueue and kevent
  • Next by thread: Re: kqueue and kevent
  • Index(es):
    • Date
    • Thread