Don't finalise from signal handler

This commit is contained in:
Miroslav Lichvar
2009-04-29 13:53:02 +02:00
parent 8b81bfe41d
commit 9416a24f03
2 changed files with 4 additions and 2 deletions

View File

@@ -558,7 +558,8 @@ SCH_MainLoop(void)
status = select(one_highest_fd, &rd, &wr, &ex, ptv);
if (status < 0) {
CROAK("Status < 0 after select");
if (!need_to_exit)
CROAK("Status < 0 after select");
} else if (status > 0) {
/* A file descriptor is ready to read */