Remove ^C handling
This commit is contained in:
parent
5637f9e476
commit
d7521a3b1f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user