1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Print error string on accept failure.

This commit is contained in:
David Galeano 2013-01-10 10:42:45 +08:00 committed by Andy Green
parent 6b66791b46
commit 7c8d98924b

View 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;
}