Added warning
This commit is contained in:
parent
8d896de3f5
commit
5f470d408d
1 changed files with 2 additions and 0 deletions
|
@ -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]);
|
||||
}
|
||||
---
|
||||
|
|
Loading…
Add table
Reference in a new issue