* sigproc.cc (proc_info): Rename proc_exists which takes a pid to "pid_exists".
* shared.h: Split out "child_info" stuff into a new header file and use where necessary. Declare pid_exists. * child_info.h: New file.
This commit is contained in:
@ -132,7 +132,7 @@ fhandler_termios::bg_check (int sig)
|
||||
|
||||
/* If the process group is no more or if process is ignoring or blocks 'sig',
|
||||
return with error */
|
||||
int pgid_gone = !proc_exists (myself->pgid);
|
||||
int pgid_gone = !pid_exists (myself->pgid);
|
||||
int sigs_ignored =
|
||||
((void *) myself->getsig(sig).sa_handler == (void *) SIG_IGN) ||
|
||||
(myself->getsigmask () & SIGTOMASK (sig));
|
||||
|
Reference in New Issue
Block a user