previously.
suspect that just keeping a reference to the open file object in the
Regards,
Dan
Hi Dan,
The child process inherits open file descriptors for the pty master and
slave devices – neither of which were the controlling terminal for any
process. In order for the pty slave device to become the controlling
terminal for the child process, the child process needs to call
TIOCSCTTY
(not supported for Solaris) or, as you have pointed out, needs to close
the
pty slave and reopen it (after calling setsid()). Had Solaris
supported
TIOCSCTTY the problem that I experienced probably would not have occured
since the close/open would not have been necessary.
Regards,
Ron