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