pikasTech / PikaPython

An ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies. It is ready to use out of the box without any configuration required and easy to extend with C. Similar project: MicroPython, JerryScript.
http://pikapython.com/
MIT License
1.45k stars 132 forks source link

Fix incorrect check for error of tcsetattr() #339

Closed szsam closed 4 months ago

szsam commented 4 months ago

Prior to this commit, the code was incorrectly checking whether tcsetattr() succeeded or not: The condition (err == -1 && err == EINTR) is always false.