| Index: src/d8-posix.cc
|
| diff --git a/src/d8-posix.cc b/src/d8-posix.cc
|
| index 36d83b53cff62b84950cf649854be15e2a140225..fb14f95f4269b0b2efb11350e8d5599c93307bf8 100644
|
| --- a/src/d8-posix.cc
|
| +++ b/src/d8-posix.cc
|
| @@ -531,21 +531,18 @@ void Shell::System(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| OpenFDCloser error_read_closer(exec_error_fds[kReadFD]);
|
| OpenFDCloser stdout_read_closer(stdout_fds[kReadFD]);
|
|
|
| - if (!ChildLaunchedOK(args.GetIsolate(), exec_error_fds)) return;
|
| + Isolate* isolate = args.GetIsolate();
|
| + if (!ChildLaunchedOK(isolate, exec_error_fds)) return;
|
|
|
| - Local<Value> accumulator = GetStdout(args.GetIsolate(), stdout_fds[kReadFD],
|
| - start_time, read_timeout, total_timeout);
|
| + Local<Value> accumulator = GetStdout(isolate, stdout_fds[kReadFD], start_time,
|
| + read_timeout, total_timeout);
|
| if (accumulator->IsUndefined()) {
|
| kill(pid, SIGINT); // On timeout, kill the subprocess.
|
| args.GetReturnValue().Set(accumulator);
|
| return;
|
| }
|
|
|
| - if (!WaitForChild(args.GetIsolate(),
|
| - pid,
|
| - child_waiter,
|
| - start_time,
|
| - read_timeout,
|
| + if (!WaitForChild(isolate, pid, child_waiter, start_time, read_timeout,
|
| total_timeout)) {
|
| return;
|
| }
|
|
|