Lines Matching refs:exec_error_fds
269 static void ExecSubprocess(int* exec_error_fds, in ExecSubprocess() argument
272 close(exec_error_fds[kReadFD]); // Don't need this in the child. in ExecSubprocess()
277 fcntl(exec_error_fds[kWriteFD], F_SETFD, FD_CLOEXEC); in ExecSubprocess()
284 bytes_written = write(exec_error_fds[kWriteFD], &err, sizeof(err)); in ExecSubprocess()
292 static bool ChildLaunchedOK(Isolate* isolate, int* exec_error_fds) { in ChildLaunchedOK() argument
296 bytes_read = read(exec_error_fds[kReadFD], &err, sizeof(err)); in ChildLaunchedOK()
505 int exec_error_fds[2]; in System() local
508 if (pipe(exec_error_fds) != 0) { in System()
523 ExecSubprocess(exec_error_fds, stdout_fds, exec_args); in System()
529 close(exec_error_fds[kWriteFD]); in System()
531 OpenFDCloser error_read_closer(exec_error_fds[kReadFD]); in System()
534 if (!ChildLaunchedOK(args.GetIsolate(), exec_error_fds)) return; in System()