forked from squizlabs/PHP_CodeSniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Non-blocking reading from stdin was introduced in 80b156d because we had problems with auto detecting whether we should read from stdin or not. Combining `posix_isatty()` and `feof()` can get us back to blocking read. By going back to blocking read from stdin we can avoid the extra check introduced in 23bd023 for Windows. We can also avoid the "read by line" and "usleep" introduced 8d669c5 and 63fafe0. They where introduced trying to solve what is possible the same problem still reported in squizlabs#1472. Fixes squizlabs#993. Fixes squizlabs#1472.
- Loading branch information
Showing
1 changed file
with
69 additions
and
20 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