Commit Graph
4 Commits
Author SHA1 Message Date
Rich Felker 1227e418ea block pthread cancellation in openpty function
being a nonstandard function, this isn't strictly necessary, but it's
inexpensive and avoids unpleasant surprises. eventually I would like
all functions in libc to be safe against cancellation, either ignoring
it or acting on it cleanly.
2014-12-20 23:38:25 -05:00
Rich Felker 3b26a32df4 don't write openpty results until success is determined
not only is this semantically more correct; it also reduces code size
slightly by eliminating the need for the compiler to assume the
possibility of aliasing.
2014-12-20 23:22:57 -05:00
Rich Felker d40e344f7b incorrect check for open failure in openpty function
-1, not 0, indicates failure
2011-07-22 00:23:36 -04:00
Rich Felker 0b44a0315b initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00