This is the mail archive of the
mailing list for the Cygwin project.
Re: TIOCSPGRP ioctl
- From: Christopher Faylor <cgf-idd at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 3 Jul 2003 15:29:50 -0400
- Subject: Re: TIOCSPGRP ioctl
- References: <Law9-OE331O0bEvivGn00059d84@hotmail.com>
- Reply-to: cygwin-patches at cygwin dot com
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
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to firstname.lastname@example.org
and be permanently blocked from mailing lists at sources.redhat.com