src: block SIGTTOU before calling tcsetattr() · nodejs/node@d4113f9 · GitHub
Skip to content

Commit d4113f9

Browse files
bnoordhuistargos
authored andcommitted
src: block SIGTTOU before calling tcsetattr()
We might be a background job that doesn't own the TTY so block SIGTTOU before making the tcsetattr() call, otherwise that signal suspends us. This is a better fix than PR #28490 for issue #28479. Fixes: #28530 Fixes: #28479 Refs: #28490 PR-URL: #28535 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
1 parent 66382ab commit d4113f9

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/node.cc

Lines changed: 10 additions & 4 deletions

0 commit comments

Comments
 (0)