Hi. > It sounds like you've got your threads mixed up, and one of them is > closing a file descriptor belonging to another. Well, after I checked it some more, you were right. I indeed had some rogue closing of file descriptor in an unrelated thread. Thanks! Stas.