select() is supposed to clear the sets in case of B_TIMED_OUT - found and patch
by Hugo Santos - thanks! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20412 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -183,9 +183,16 @@ common_select(int numfds, fd_set *readSet, fd_set *writeSet, fd_set *errorSet,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case B_INTERRUPTED:
|
case B_INTERRUPTED:
|
||||||
count = B_INTERRUPTED;
|
count = B_INTERRUPTED;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case B_TIMED_OUT:
|
||||||
|
fd_zero(readSet, numfds);
|
||||||
|
fd_zero(writeSet, numfds);
|
||||||
|
fd_zero(errorSet, numfds);
|
||||||
|
// supposed to fall through
|
||||||
default:
|
default:
|
||||||
// B_TIMED_OUT, and B_WOULD_BLOCK
|
// B_TIMED_OUT, and B_WOULD_BLOCK
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user