* 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.
This commit is contained in:
Christopher Faylor
2011-05-30 06:58:00 +00:00
parent 977ad5434c
commit 7123c8b1fd
3 changed files with 54 additions and 25 deletions

View File

@@ -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)));