Update main.c

pull/78/head
alanbjohnston 5 years ago committed by GitHub
parent b8fe0cef95
commit 27399f2022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1008,7 +1008,7 @@ int start_subprocess(char *const command[], int *pid, int *infd, int *outfd)
int p1[2], p2[2];
if (!pid || !infd || !outfd)
return false;
return 0;
if (pipe(p1) == -1)
goto err_pipe1;
@ -1023,7 +1023,7 @@ int start_subprocess(char *const command[], int *pid, int *infd, int *outfd)
*outfd = p2[0];
close(p1[0]);
close(p2[1]);
return true;
return 1;
} else {
/* Child process. */
dup2(p1[0], 0);

Loading…
Cancel
Save

Powered by TurnKey Linux.