Permalink
Browse files

fix(build): fix abstruse-pty program

  • Loading branch information...
jkuri committed Sep 17, 2017
1 parent 924a456 commit d2e58a10aa0dc05766823c7291af9113bfb70e9d
@@ -8,7 +8,7 @@ exports.config = {
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['--headless', '--disable-gpu', '--window-size=1024,768']
// args: ['--headless', '--disable-gpu', '--window-size=1024,768']
}
},
directConnect: true,
@@ -25,7 +25,9 @@ export function createContainer(
Cmd: ['/bin/bash'],
Env: envs || [],
Binds: ['/var/run/docker.sock:/var/run/docker.sock'],
Privileged: true
HostConfig: {
Privileged: true
}
} as any)
.then(container => container.start())
.then(() => observer.complete())
@@ -52,8 +52,14 @@ int main(int argc, char *argv[]) {
close(fd[1]);

int status;
waitpid(pid, &status, 0);
if (waitpid(pid, &status, 0) == -1) {
perror("waitpid failed");
return EXIT_FAILURE;
}

return status;
if (WIFEXITED(status)) {
const int code = WEXITSTATUS(status);
return code;
}
}
}

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit d2e58a1

Please sign in to comment.