On Sun, Mar 13, 2011 at 3:15 PM, Dave Keck <davek...@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com