Added warning

This commit is contained in:
buffet 2018-10-01 12:55:43 +02:00
parent 8d896de3f5
commit 5f470d408d

View file

@ -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]);
}
---