VILLASframework / common

Archived: The libvillas-common library has been integrated into the VILLASnode repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dont respond to terminal resize when output is redirected

stv0g opened this issue · comments

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.

approved this merge request

Fixed in db2862e