Here s a snippet of code I m using in a loop:
while True:
print loop
rlist, wlist, xlist = select.select(readers, [], [], TIMEOUT)
print selected
# do stuff
At a certain point, select will block and "selected" is never getting printed. What can cause this behavior? Is it possible there s some kind of deadlock?
UPDATE: I m running on Ubuntu linux and the reader objects are sockets.