jmknsd
September 1st, 2011, 11:29 PM
I've spent the summer working on a gsoc project and I have encountered a problem that I have been unable to solve.
I'm using the event loop tools that come with the wayland demo compositor, and I create a remote socket and add it to the event loop/epoll. Once the socket is written to, the handling function calls accept. I have put printfs above and below this statement, printing out the epoll fd, and the accept call changes it somehow. I am allocating a new fd for this accept call, and the epoll fd is stored in a different struct. Here is the function that makes the accept call:
https://github.com/kempj/remote-wayland/blob/master/rwl_client.c#L569
Debugging this requires the accompanying psuedo compositor to be running, as well as a normal wayland client and compositor, so debugging takes a bit of set up, but I can run anything needed.
Thanks for your help,
Jeremy
I'm using the event loop tools that come with the wayland demo compositor, and I create a remote socket and add it to the event loop/epoll. Once the socket is written to, the handling function calls accept. I have put printfs above and below this statement, printing out the epoll fd, and the accept call changes it somehow. I am allocating a new fd for this accept call, and the epoll fd is stored in a different struct. Here is the function that makes the accept call:
https://github.com/kempj/remote-wayland/blob/master/rwl_client.c#L569
Debugging this requires the accompanying psuedo compositor to be running, as well as a normal wayland client and compositor, so debugging takes a bit of set up, but I can run anything needed.
Thanks for your help,
Jeremy