-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Fixed the #seek inheritance hierarchy mostly by no longer conflating #seek and #sysseek as the same thing. 2. Rename PipeFileDescriptor to FIFOFileDescriptor since it can also be used for special character files. 3. Fix #gets so the peek ahead for multi-byte characters is properly respected; refill the buffer if we don't have enough bytes for peek ahead. 4. Fix important error in #new_open_fd which was using the wrong flag on an FD. When using fcntl on an FD, it is important to use the FD_* flags. Was using O_CLOEXEC instead of FD_CLOEXEC and as a result all child processes were hanging when their read pipe was closed. 5. Handle EPIPE in #write correctly. Also raise an error if we get an error instead of ignoring it.
1 parent
c259427
commit 8af5016
Showing
1 changed file
with
59 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters