Skip to content

Commit e9ee76b

Browse files
committed
stdio: call _undestroy() inside _destroy for stdout and stderr
Fixes: #39447
1 parent 712059a commit e9ee76b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/internal/bootstrap/switches/is_main_thread.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function createWritableStdioStream(fd) {
100100

101101
function dummyDestroy(err, cb) {
102102
cb(err);
103+
this._undestroy();
103104

104105
// We need to emit 'close' anyway so that the closing
105106
// of the stream is observable. We just make sure we

0 commit comments

Comments
 (0)