TIOCSPGRP ioctl

Christopher Faylor cgf-idd@cygwin.com
Thu Jul 3 19:29:00 GMT 2003


On Thu, Jul 03, 2003 at 02:20:14PM -0400, Rafael Kitover wrote:
>Still working on my screen port and am tantalizingly close. I noticed that
>there doesn't seem to be an implementation of the
>TIOCSPGRP ioctl (and consequently the tcsetpgrp function) to set the pgrp of
>the tty, I'm guessing this might be my problem,
>or one of them.
>
>There seems to be support for its existance in
>newlib/libc/sys/linux/termios.c and for the tcsetpgrp function.
>
>Would it be a good idea to write a patch to implement this ioctl? If so,
>could I have a couple suggestions on where to start?
>Does this go into fhandler_tty_slave::ioctl() ? Is it generally useful to
>work on adding other unimplemented tty ioctls?

tcsetpgrp should do what you want.  It is the modern way to accomplish
this.  I'm surprised that screen doesn't already have some way of using
this call.  Or is it using it and something is wrong in cygwin's
implementation?

cgf
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam@sourceware.org
and be permanently blocked from mailing lists at sources.redhat.com



More information about the Cygwin-patches mailing list