diff options
author | Sebastian Wilhelmi <wilhelmi@ira.uka.de> | 2000-03-20 16:19:58 +0000 |
---|---|---|
committer | Sebastian Wilhelmi <wilhelmi@src.gnome.org> | 2000-03-20 16:19:58 +0000 |
commit | 1266a4b88ac7e2b461c10b5055f435be24aa640a (patch) | |
tree | 224b1f3185194300b27b120b2758f02866274a42 /gmain.c | |
parent | 2c4b4788fd8662cc26b248859c156c20fe9e7e3a (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |