cleanup function and signal handling
This commit is contained in:
parent
175075d2d5
commit
496198f488
4 changed files with 65 additions and 36 deletions
2
client.c
2
client.c
|
@ -8,7 +8,7 @@ int client_close(struct client_t *client) {
|
|||
close(client->socket);
|
||||
}
|
||||
client->socket = -1;
|
||||
fprintf(stderr,"[%s]: socket closed for client %s\n", __func__, client->ip_string);
|
||||
fprintf(stderr,"[%s] socket closed for client %s\n", __func__, client->ip_string);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue