From 5f470d408d835b28fb75166eb7997088ae88dbf7 Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 1 Oct 2018 12:55:43 +0200 Subject: [PATCH] Added warning --- lit/wmaffle.lit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lit/wmaffle.lit b/lit/wmaffle.lit index 641e016..ffbe6ab 100644 --- a/lit/wmaffle.lit +++ b/lit/wmaffle.lit @@ -347,5 +347,7 @@ if (!(client_fd < 0) && (msg_len = read(client_fd, msg, sizeof(msg))) > 0) { msg[msg_len] = '\0'; printf("Client sent: %s\n", msg); close(client_fd); +} else { + fprintf(stderr, "%s: unable to accept connection\n", argv[0]); } ---