Re: [PATCH libinput] libinput: Fix the close_restricted interface callback

2014-03-03 Thread Peter Hutterer
On Sat, Mar 01, 2014 at 02:19:03PM -0500, Jasper St. Pierre wrote: libinput is supposed to take a close callback in its interface to allow you to call out to a privileged API to close FDs. But the FD that libinput passes you is bogus, because libinput_remove_source closes the FD on which it's

[PATCH libinput] libinput: Fix the close_restricted interface callback

2014-03-01 Thread Jasper St. Pierre
libinput is supposed to take a close callback in its interface to allow you to call out to a privileged API to close FDs. But the FD that libinput passes you is bogus, because libinput_remove_source closes the FD on which it's passed. This is really bad, as the libinput_source really doesn't own