mirror of
https://github.com/sigmasternchen/CFloor
synced 2025-03-15 12:28:53 +00:00
fixed sigio not firing
This commit is contained in:
parent
670f120ea5
commit
0242fe26e8
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue