diff options
-rw-r--r-- | input/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/pipe.c b/input/pipe.c index a961debba7..3740c22168 100644 --- a/input/pipe.c +++ b/input/pipe.c @@ -41,7 +41,7 @@ static void *reader_thread(void *ctx) int fd = -1; bool close_fd = true; if (strcmp(p->filename, "/dev/stdin") == 0) { // mainly for win32 - fd = 1; + fd = fileno(stdin); close_fd = false; } if (fd < 0) |