fixed sigio not firing

This commit is contained in:
overflowerror 2019-03-04 23:04:49 +01:00
parent 670f120ea5
commit 0242fe26e8

View file

@ -431,8 +431,6 @@ void* listenThread(void* _bind) {
continue;
}
setSIGIO(tmp, true);
connection->state = OPENED;
connection->client = client;
connection->bind = bindObj;
@ -451,6 +449,11 @@ void* listenThread(void* _bind) {
updateTiming(connection, false);
linked_push(&connectionList, connection);
setSIGIO(tmp, true);
// trigger sigio in case we missed something
kill(getpid(), SIGIO);
}
}