incorrect check for open failure in openpty function
[musl] / src / thread / cancellation3.c