summaryrefslogtreecommitdiff
path: root/gmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'gmain.c')
-rw-r--r--gmain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gmain.c b/gmain.c
index a3b18340c..a2ca73a1c 100644
--- a/gmain.c
+++ b/gmain.c
@@ -1034,7 +1034,9 @@ g_main_poll (gint timeout,
#endif
G_UNLOCK (main_loop);
- (*poll_func) (fd_array, npoll, timeout);
+ if ((*poll_func) (fd_array, npoll, timeout) < 0)
+ g_warning ("poll(2) failed due to: %s.",
+ g_strerror (errno));
G_LOCK (main_loop);
#ifdef G_MAIN_POLL_DEBUG