> For (1), a simple scenario has two threads: a reader and a watchdog. > The reader thread is stuck in a blocking read of an unreliable pipe. > The watchdog thread is designed to cancel the blocking read using > close on the reader's fd.
The reader still has the fd open so the fd is not yet closed. This seems completely sane to me. Closing the *writer* fd would create an EOF which is the proper response. Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/