Message22123
Logged In: YES
user_id=11375
'e = r+w' means 'e' can contain the same descriptor twice,
if it's both readable and writable, and I think this
matters. Duplicate fd's don't cause a problem with the
select() system call itself, but the return value from
select.select() would include the file descriptor twice.
(I've attached a test program that demonstrates this for
readable fds.)
Therefore, I think the 'if is_r or is_w' logic is necessary.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:25:28 | admin | link | issue1011606 messages |
2007-08-23 14:25:28 | admin | create | |
|