* select.cc (peek_pipe): Only grab mutex when we actually got something from
the pipe.
This commit is contained in:
@ -77,7 +77,12 @@ extern char __declspec(dllimport) *__progname;
|
||||
#define IGNORE_FIRST (*options == '-' || *options == '+')
|
||||
#define PRINT_ERROR ((opterr) && ((*options != ':') \
|
||||
|| (IGNORE_FIRST && options[1] != ':')))
|
||||
#define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL)
|
||||
#if defined(__CYGWIN__) || defined(__MINGW32__)
|
||||
# define IS_POSIXLY_CORRECT (1)
|
||||
#else
|
||||
# define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL)
|
||||
#endif
|
||||
|
||||
#define PERMUTE (!IS_POSIXLY_CORRECT && !IGNORE_FIRST)
|
||||
/* XXX: GNU ignores PC if *options == '-' */
|
||||
#define IN_ORDER (!IS_POSIXLY_CORRECT && *options == '-')
|
||||
|
Reference in New Issue
Block a user