Skip to content

Commit

Permalink
jsc/common/thinthin.jsc: dedebugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Jan 31, 2021
1 parent 56dbedd commit 830b494
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions jsc/common/thinthin.jsc
Original file line number Diff line number Diff line change
Expand Up @@ -3231,14 +3231,9 @@ if (typeof(os) !== "undefined" &&
if (this.pwd !== undefined)
command = "(cd " + this.pwd + "; PWD=. " + command + ")>tmp.out";
try {
console.log("command",command);
let pid = os.spawn(command);
let o = os.waitpid(pid);
let output = os.file.readFile("tmp.out", "binary");
for (let i = 0; i < output.length; i++)
if (output[i] === 32) output[i] = 10;
console.log("output", output);
//this.fds[2].write(output, 0, 0);
let ret = this.fds[1].write(output, 0, output.length);
return new Promise(() => {});
} catch (e) {
Expand Down

0 comments on commit 830b494

Please sign in to comment.