fhandler_tty patch
Sergey Okhapkin
sos@prospect.com.ru
Sun Nov 3 17:34:00 GMT 2002
----- Original Message -----
From: "Christopher Faylor" <cgf@redhat.com>
To: <cygwin-patches@cygwin.com>
Sent: Sunday, November 03, 2002 8:11 PM
Subject: Re: fhandler_tty patch
> Ok. I haven't looked closely at this code before. I just am not sure
> what use setting the size on a pty master would entail. I wonder if it
> is supposed to be propagated to the slave. Also, isn't the master
> supposed to be notified of size changes in the slave?
No. Slave only gets the notification. From HP-UX manual page:
When an M_IOCTL message of type TIOCSWINSZ is received in its
write queue, ptem saves the information passed to it in the
winsize structure and sends an M_PCSIG (with the signal number
set to SIGWINCH) upstream to the pty slave process if the
window size is changed.
When an M_IOCTL message of type TIOCSWINSZ is received in its
read queue, ptem saves the information passed to it in the
winsize structure and sends an M_PCSIG (with the signal number
is set to SIGWINCH) upstream to the pty slave process if the
window size is changed.
Note that the signal in both cases is sent to slave pty and only if the
window size is changed.
>
> I'll apply the patch but I suspect that this is still not exactly right
> wrt UNIX emulation.
Cygwin is not exactly right UNIX emulation - the PID of init process != 1:-)
Sergey Okhapkin
Somerset, NJ
More information about the Cygwin-patches
mailing list