diff options
author | Christopher Faylor <me@cgf.cx> | 2011-05-30 10:58:00 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-05-30 10:58:00 +0400 |
commit | 7123c8b1fd92c222613bb1b77ec67d69fbbb9791 (patch) | |
tree | 96b306bc8962cd04a3775f7d478912c3c5c516c5 /winsup/cygwin/tty.h | |
parent | 977ad5434cc09034e7276127e6aa10c4f88d2e3e (diff) |
* fhandler_termios.cc (fhandler_termios::bg_check): Do not return EIO when a
process group has no leader as this is allowed and does not imply an orphaned
process group. Add a test for orphaned process groups.
(tty_min::is_orphaned_process_group): Define new function.
* tty.h (tty_min::is_orphaned_process_group): Define new function.
Diffstat (limited to 'winsup/cygwin/tty.h')
-rw-r--r-- | winsup/cygwin/tty.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/tty.h b/winsup/cygwin/tty.h index a0bc485a0..09583bd28 100644 --- a/winsup/cygwin/tty.h +++ b/winsup/cygwin/tty.h @@ -78,7 +78,8 @@ public: void setpgid (int pid) {pgid = pid;} int getsid () const {return sid;} void setsid (pid_t tsid) {sid = tsid;} - void kill_pgrp (int sig); + void kill_pgrp (int); + int is_orphaned_process_group (int); HWND gethwnd () const {return hwnd;} void sethwnd (HWND wnd) {hwnd = wnd;} const char *ttyname () __attribute ((regparm (1))); |