If a process with no controlling terminal opens a tty it will become the controlling terminal of the process by default even if the terminal was opened only for writing (this does not seem right to me). To prevent this the flag O_NOCTTY must be given to open() or the ioctl() request TIOCNOTTY used.
-- John Hasler [EMAIL PROTECTED] Elmwood, WI USA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]