2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-21 02:52:12 +00:00

Remove bogus setpgid diagnostic.

This commit is contained in:
K. Noel Belcourt
2014-12-28 22:01:42 -07:00
parent b1e0b621c4
commit dbb521a6ba

View File

@@ -211,15 +211,15 @@ void exec_cmd
sigemptyset(&ignore.sa_mask);
ignore.sa_flags = 0;
if (sigaction(SIGINT, &ignore, &saveintr) < 0)
return;
return;
if (sigaction(SIGQUIT, &ignore, &savequit) < 0)
return;
return;
/* block SIGCHLD */
sigemptyset(&chldmask);
sigaddset(&chldmask, SIGCHLD);
if (sigprocmask(SIG_BLOCK, &chldmask, &savemask) < 0)
return;
return;
if ( ( cmdtab[ slot ].pid = vfork() ) == -1 )
{
@@ -276,10 +276,9 @@ void exec_cmd
/******************/
/* Parent process */
/******************/
if (0 != setpgid(cmdtab[ slot ].pid, cmdtab[ slot ].pid)) {
perror("setpgid (parent)");
/* exit( EXITBAD ); */
}
/* redundant call, ignore return value */
setpgid(cmdtab[ slot ].pid, cmdtab[ slot ].pid)) {
/* Parent not need the write pipe ends used by the child. */
close( out[ EXECCMD_PIPE_WRITE ] );