Dont respond to terminal resize when output is redirected
stv0g opened this issue · comments
Steffen Vogel commented
In GitLab by @JTS22 on Sep 21, 2021, 12:44
Merges node-cpp-fixes -> node-cpp
This change fixes a crash that occurs when stderr is redirected (either in the terminal or by starting VILLASnode via Python with a log file provided). Previously, the terminal handling code only checked if stdin is bound to a terminal but performed the ioctl operations on the stderr file descriptor. With this change, only the stderr is checked and the ioctl commands are only applied if stderr is actually a terminal.
Steffen Vogel commented
approved this merge request
Steffen Vogel commented
Fixed in db2862e