Re: kqueue and kevent
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