mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:03:02 +01:00
If stdin is FILE_TYPE_PIPE then we should treat it as non-interactive (#187)
This commit is contained in:
parent
4c83384b9a
commit
a263a19a49
@ -9469,7 +9469,7 @@ static bool stdin_redirected()
|
||||
#ifdef WIN_NT
|
||||
HANDLE in = GetStdHandle(STD_INPUT_HANDLE);
|
||||
const DWORD file_type = GetFileType(in);
|
||||
if (file_type == FILE_TYPE_CHAR || file_type == FILE_TYPE_PIPE)
|
||||
if (file_type == FILE_TYPE_CHAR)
|
||||
return false;
|
||||
#else
|
||||
if (isatty(fileno(stdin)))
|
||||
|
Loading…
Reference in New Issue
Block a user