Re: [PATCH xserver 03/20] os: Implement support for NotifyFd X_NOTIFY_WRITE

2015-11-17 Thread Adam Jackson
On Wed, 2015-11-11 at 22:02 -0800, Keith Packard wrote: > @@ -1174,12 +1192,16 @@ SetNotifyFd(int fd, NotifyFdProcPtr notify, int mask, > void *data) >  void >  HandleNotifyFds(void) >  { > -struct notify_fd *s, *next; > - > -xorg_list_for_each_entry_safe(s, next, ¬ify_fds, list) { > -  

Re: [PATCH xserver 03/20] os: Implement support for NotifyFd X_NOTIFY_WRITE

2015-11-17 Thread Keith Packard
Adam Jackson writes: > ISTR the server currently has a "write then read" strategy for deadlock > avoidance (and accidentally better reliability when low on memory).  Do > we want to do that here too, and if we do, do we split this into > walking the list twice to enforce the

[PATCH xserver 03/20] os: Implement support for NotifyFd X_NOTIFY_WRITE

2015-11-11 Thread Keith Packard
This adds the ability to be notified when a file descriptor is available for writing. Signed-off-by: Keith Packard --- os/WaitFor.c| 30 -- os/connection.c | 40 +++- os/io.c | 8 os/osdep.h