Make quitting on frontend exiting foolproof

This commit is contained in:
Juhani Krekelä 2019-07-13 19:55:26 +03:00
parent 849c9d6fe0
commit ac1fbb9bd0
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}