Print error string on accept failure. 72/2872/1
authorDavid Galeano <davidgaleano@turbulenz.biz>
Thu, 10 Jan 2013 02:42:45 +0000 (10:42 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:23 +0000 (13:01 -0800)
lib/libwebsockets.c

index c5a6f40..84f2aba 100644 (file)
@@ -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;
                }