From 06ab8463a40a067df620ce7d93fa6075f22448fa Mon Sep 17 00:00:00 2001 From: David Galeano Date: Thu, 10 Jan 2013 10:42:45 +0800 Subject: [PATCH] Print error string on accept failure. --- lib/libwebsockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index c5a6f40..84f2aba 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -1544,7 +1544,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context, accept_fd = accept(pollfd->fd, (struct sockaddr *)&cli_addr, &clilen); if (accept_fd < 0) { - debug("ERROR on accept\n"); + debug("ERROR on accept: %d\n", strerror(errno)); return -1; } -- 2.7.4