OSDN Git Service

* fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
authorcorinna <corinna>
Wed, 7 Oct 2009 07:52:29 +0000 (07:52 +0000)
committercorinna <corinna>
Wed, 7 Oct 2009 07:52:29 +0000 (07:52 +0000)
commit85537a92c290d32664de6d7088e87a1ad2b2868a
treee10b630658cfbd4cf9a70a71bf2e7521b356e490
parent0f9013903d7e6f4fb89d7404a79724bd82e4e12f
* fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
* fhandler_termios.cc (fhandler_termios::tcgetpgrp): Only return
valid pgid if tty is controlling tty.  Set errno to ENOTTY and
return -1 otherwise.
(fhandler_pty_master::tcgetpgrp): New function.  Return 0 for
master side of pty if it's not the controlling tty of the process.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_termios.cc