summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-08 19:45:13 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-09 08:45:40 +0100
commitd524e5f4174e4f7578595bf6cd22a6d161b6e324 (patch)
tree99749cd0f554ab9b2baa63ea763ac364097d13ef
parentdef5e8e889e0ffe1cf55462ca32b69b627c5ff96 (diff)
downloadsamba-d524e5f4174e4f7578595bf6cd22a6d161b6e324.tar.gz
samba-d524e5f4174e4f7578595bf6cd22a6d161b6e324.tar.bz2
samba-d524e5f4174e4f7578595bf6cd22a6d161b6e324.zip
s3:events: debug sys_select() errors
metze
-rw-r--r--source3/lib/events.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 92c1f7fd1d..8deaa18edb 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -189,6 +189,9 @@ static int s3_event_loop_once(struct tevent_context *ev)
ret = sys_select(maxfd+1, &r_fds, &w_fds, NULL, &to);
if (ret == -1 && errno != EINTR) {
+ tevent_debug(ev, TEVENT_DEBUG_FATAL,
+ "sys_select() failed: %d:%s\n",
+ errno, strerror(errno));
return -1;
}