Skip to content

Commit

Permalink
explicit close on end
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Oct 24, 2024
1 parent 8771cf9 commit 00dadbb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ describe(
command: '/bin/echo',
args: [message],
onExit: (err, exitCode) => {
console.log('huhhh')
expect(err).toBeNull();
expect(exitCode).toBe(0);
expect(buffer.trim()).toBe(message);
Expand Down
1 change: 1 addition & 0 deletions wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class Pty {
return;
}

this.close();
this.#fdEnded = true;
exitResult.then((result) => {
console.log('calling real exit')
Expand Down

0 comments on commit 00dadbb

Please sign in to comment.