* 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:
@@ -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)));
|
||||
|
Reference in New Issue
Block a user