* 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:
Christopher Faylor
2000-09-01 20:54:22 +00:00
parent b13be6f6fb
commit 488c7683e3
9 changed files with 81 additions and 56 deletions

View File

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