Skip to content

Commit

Permalink
runProcess.c: Clean up whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
bgamari committed Dec 12, 2016
1 parent 41cc846 commit dc4849d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cbits/runProcess.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ runInteractiveProcess (char *const args[],
if ((flags & RUN_PROCESS_IN_NEW_GROUP) != 0) {
setpgid(0, 0);
}

if ( childGroup) {
if ( setgid( *childGroup) != 0) {
// ERROR
Expand Down Expand Up @@ -240,9 +240,9 @@ runInteractiveProcess (char *const args[],
}
// XXX Not the pipe
for (i = 3; i < max_fd; i++) {
if (i != forkCommunicationFds[1]) {
close(i);
}
if (i != forkCommunicationFds[1]) {
close(i);
}
}
}

Expand Down

0 comments on commit dc4849d

Please sign in to comment.