Make quitting on frontend exiting foolproof
This commit is contained in:
parent
849c9d6fe0
commit
ac1fbb9bd0
|
@ -1054,8 +1054,7 @@ void eventloop(void) {
|
||||||
read_command();
|
read_command();
|
||||||
} else if (pollfds[0].revents & POLLHUP) {
|
} else if (pollfds[0].revents & POLLHUP) {
|
||||||
// Quit on frontend exiting
|
// Quit on frontend exiting
|
||||||
warnx("Frontend exited unexpectedly");
|
exit(1);
|
||||||
running = false;
|
|
||||||
} else {
|
} else {
|
||||||
errx(1, "Got poll event %hd on stdin\n", pollfds[0].revents);
|
errx(1, "Got poll event %hd on stdin\n", pollfds[0].revents);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue