cleanup function and signal handling

This commit is contained in:
Igor Socec 2014-03-10 16:42:49 +01:00
parent 175075d2d5
commit 496198f488
4 changed files with 65 additions and 36 deletions

View file

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