Remove ^C handling

This commit is contained in:
Franck STAUFFER 2020-09-08 23:08:28 +02:00
parent 5637f9e476
commit d7521a3b1f
Signed by: franck.stauffer
GPG Key ID: AAF5A94045CEC261

View File

@ -214,11 +214,6 @@ main(int argc, char** argv)
} }
} else if (events[i].data.fd == 0) { } else if (events[i].data.fd == 0) {
const uint8_t chr = getchar(); const uint8_t chr = getchar();
if (chr == 3) {
fputs("\n\rLeaving...\n\r", stdout);
return 0;
}
if (send(sock, &chr, 1, 0) != 1) { if (send(sock, &chr, 1, 0) != 1) {
perror("ERROR: send"); perror("ERROR: send");
return 9; return 9;