When can that happen? In the case of tty's (and stdin) and named pipes I assume there is enough caution anyway, and isn't that normally¹ the only way to share fd's like that?
(¹ I know solaris has an ioctl to transfer fd's between processes.)
/ Mirar
Previous text:
2003-03-20 13:48: Subject: I/O callbacks in blocking mode
That sounds like a better approach. The only difference I can see is that the window for something else (outside the control of the pike I/O system) to read the data becomes greater, but that's a broken situation anyway.
/ Martin Stjernholm, Roxen IS