summaryrefslogtreecommitdiff
path: root/gmain.c
diff options
context:
space:
mode:
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>2000-03-20 16:19:58 +0000
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>2000-03-20 16:19:58 +0000
commit1266a4b88ac7e2b461c10b5055f435be24aa640a (patch)
tree224b1f3185194300b27b120b2758f02866274a42 /gmain.c
parent2c4b4788fd8662cc26b248859c156c20fe9e7e3a (diff)
Warn in case of an error during the call to poll(2). Closes Bug#7564 as
2000-03-20 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gmain.c (g_main_poll): Warn in case of an error during the call to poll(2). Closes Bug#7564 as reported by David Helder <dhelder@umich.edu>.
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