Re: [PATCH] client: fix an inconsistency in documentation

2013-09-21 Thread Kristian Høgsberg
On Wed, Sep 18, 2013 at 10:45:06AM +, Chang Liu wrote:
 The errno is set to EAGAIN when there are undispatched events, according
 to L1066 of wayland-client.c.

Thanks, good catch.

Kristian

 ---
  src/wayland-client.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/src/wayland-client.c b/src/wayland-client.c
 index 04d988b..d043459 100644
 --- a/src/wayland-client.c
 +++ b/src/wayland-client.c
 @@ -1087,7 +1087,7 @@ wl_display_prepare_read_queue(struct wl_display 
 *display,
   * calls wl_display_read_events(), no other thread will read from the
   * file descriptor.  This only succeeds if the event queue is empty
   * though, and if there are undispatched events in the queue, -1 is
 - * returned and errno set to EBUSY.
 + * returned and errno set to EAGAIN.
   *
   * If a thread successfully calls wl_display_prepare_read(), it must
   * either call wl_display_read_events() when it's ready or cancel the
 -- 
 1.8.3.4
 
 ___
 wayland-devel mailing list
 wayland-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/wayland-devel
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


[PATCH] client: fix an inconsistency in documentation

2013-09-17 Thread Chang Liu
The errno is set to EAGAIN when there are undispatched events, according
to L1066 of wayland-client.c.
---
 src/wayland-client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wayland-client.c b/src/wayland-client.c
index 04d988b..d043459 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -1087,7 +1087,7 @@ wl_display_prepare_read_queue(struct wl_display *display,
  * calls wl_display_read_events(), no other thread will read from the
  * file descriptor.  This only succeeds if the event queue is empty
  * though, and if there are undispatched events in the queue, -1 is
- * returned and errno set to EBUSY.
+ * returned and errno set to EAGAIN.
  *
  * If a thread successfully calls wl_display_prepare_read(), it must
  * either call wl_display_read_events() when it's ready or cancel the
-- 
1.8.3.4

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


[PATCH] client: fix an inconsistency in documentation

2013-09-17 Thread Chang Liu
The errno is set to EAGAIN when there are undispatched events, according
to L1066 of wayland-client.c.
---
 src/wayland-client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wayland-client.c b/src/wayland-client.c
index 04d988b..d043459 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -1087,7 +1087,7 @@ wl_display_prepare_read_queue(struct wl_display *display,
  * calls wl_display_read_events(), no other thread will read from the
  * file descriptor.  This only succeeds if the event queue is empty
  * though, and if there are undispatched events in the queue, -1 is
- * returned and errno set to EBUSY.
+ * returned and errno set to EAGAIN.
  *
  * If a thread successfully calls wl_display_prepare_read(), it must
  * either call wl_display_read_events() when it's ready or cancel the
-- 
1.8.3.4

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel