add cleanup_display call in case of SIGINT

This commit is contained in:
Lennart Buhl 2013-11-02 21:55:33 +01:00
parent 2c9b507078
commit 70076b0b4e
4 changed files with 4 additions and 3 deletions

View File

@ -93,6 +93,7 @@ int main(int argc, char **argv) {
ret = run_server(&prog_info);
} else {
printf("running in CLIENT mode, using client number %d\n", prog_info.client_offset);
signal(SIGINT,&cleanup_display);
ret = run_client(&prog_info, callback);
}