Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The class name was a problem, because the method that we want to call on it is also called GetLine, which looks too much like a constructor in C++, so I renamed it to LineBuffer. I haven't yet renamed the child classes. Also, it was impossible to distinguish between the different causes of GetLine() returning false (timeout and signal) and EOF could only be checked by calling a different function. Now all of these causes throw different exceptions. This really fixes the problem with attaching a debugger to a process waiting in GetLine, which would previously cause the read() to return immediately with EINTR, which we never retried because it looked like a timeout.
- Loading branch information
Showing
26 changed files
with
525 additions
and
261 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
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
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
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
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
Oops, something went wrong.