Robin Burchell
99dd60611f
Kernel: Fix select with a 0 timeout
...
select essentially has 3 modes (which is presumably why we're finding it
so hard to get this right in a reliable way :)).
1. NULL timeout -- no timeout on blocking
2. non-NULL timeout that is not zero'd -- timeout on blocking
3. non-NULL but zero timeout -- no blocking at all (immediate poll)
For cases 1 and 2, we want to block the thread. We have a timeout set
only for case 2, though.
Case 3 should not block the thread, and does not have a timeout set.
2019-05-18 19:01:08 +02:00
..
2019-05-18 03:08:29 +02:00
2019-05-15 21:40:41 +02:00
2019-05-18 14:49:49 +02:00
2019-05-18 04:17:53 +02:00
2019-05-18 04:14:22 +02:00
2019-05-08 19:21:51 +02:00
2019-05-18 03:59:16 +02:00
2019-03-27 13:02:29 +01:00
2019-04-01 21:43:07 +02:00
2019-03-20 18:16:15 +01:00
2019-04-23 21:52:02 +02:00
2019-04-06 14:29:29 +02:00
2019-04-29 13:58:40 +02:00
2019-04-29 13:58:40 +02:00
2019-03-20 02:12:40 +01:00
2019-05-02 03:28:20 +02:00
2019-04-29 13:58:40 +02:00
2019-05-03 20:42:43 +02:00
2019-05-17 18:52:29 +02:00
2019-04-14 04:39:56 +02:00
2019-05-15 21:40:41 +02:00
2019-05-15 21:40:41 +02:00
2019-04-20 03:24:50 +02:00
2019-05-17 21:59:48 +02:00
2019-04-23 03:45:55 +02:00
2019-04-23 20:47:45 +02:00
2019-05-16 13:41:16 +02:00
2019-04-15 23:58:48 +02:00
2019-04-29 13:58:40 +02:00
2019-04-09 02:37:38 +02:00
2019-04-10 22:49:11 +02:00
2019-05-18 17:33:05 +02:00
2019-05-16 13:41:16 +02:00
2019-04-06 14:29:29 +02:00
2019-04-01 21:43:07 +02:00
2019-05-16 13:41:16 +02:00
2019-05-17 21:59:48 +02:00
2019-05-17 15:49:37 +02:00
2019-04-30 14:47:22 +02:00
2019-05-13 19:48:14 +02:00
2019-03-11 11:11:29 +01:00
2019-03-11 11:11:29 +01:00
2019-04-06 14:29:29 +02:00
2019-04-06 14:29:29 +02:00
2019-01-31 17:31:23 +01:00
2019-05-18 19:01:08 +02:00
2019-05-17 04:39:22 +02:00
2019-05-03 20:42:43 +02:00
2019-05-03 20:42:43 +02:00
2019-05-17 16:06:26 +02:00
2019-04-06 14:29:29 +02:00
2019-05-17 18:19:03 +02:00
2019-05-15 21:40:41 +02:00
2019-05-15 21:40:41 +02:00
2019-05-18 04:17:53 +02:00
2019-05-18 04:17:53 +02:00
2019-04-22 17:13:18 +02:00
2019-04-06 14:29:29 +02:00
2019-05-17 21:59:48 +02:00
2019-05-15 21:40:41 +02:00
2019-05-15 21:40:41 +02:00
2019-05-17 03:43:51 +02:00
2019-05-17 03:43:51 +02:00
2019-05-10 03:19:25 +02:00