On 18/12/2013 07:35, Amit Shah wrote:
As far as I could tell the pty backend doesn't suffer from this issue. That's why I didn't change anything there.pty_chr_update_read_handler() calls pty_chr_state(), which calls remove_fd_in_watch().
Yes, but the pty_chr_update_read_handler() isn't called on device removal so remove_fd_in_watch() is not executed.
However I did find that there was a problem in the pty backend that I missed and I'll post an updated patch.
Thanks, Gal.