mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +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
|
#ifdef WIN_NT
|
||||||
HANDLE in = GetStdHandle(STD_INPUT_HANDLE);
|
HANDLE in = GetStdHandle(STD_INPUT_HANDLE);
|
||||||
const DWORD file_type = GetFileType(in);
|
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;
|
return false;
|
||||||
#else
|
#else
|
||||||
if (isatty(fileno(stdin)))
|
if (isatty(fileno(stdin)))
|
||||||
|
Loading…
Reference in New Issue
Block a user