robustness server dont exit server on accept problems
authorAndy Green <andy.green@linaro.org>
Wed, 16 Jan 2013 03:43:53 +0000 (11:43 +0800)
committerAndy Green <andy.green@linaro.org>
Wed, 16 Jan 2013 03:43:53 +0000 (11:43 +0800)
Error message corrected to %s as well

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.c

index bbbbe49..6d9f311 100644 (file)
@@ -1651,8 +1651,8 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
                accept_fd  = accept(pollfd->fd, (struct sockaddr *)&cli_addr,
                                                                       &clilen);
                if (accept_fd < 0) {
-                       lwsl_warn("ERROR on accept: %d\n", strerror(errno));
-                       return -1;
+                       lwsl_warn("ERROR on accept: %s\n", strerror(errno));
+                       break;
                }
 
                /* Disable Nagle */