From 6410c4c8efbb659692ef70bc94c1190b9c08117d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 25 Aug 2014 21:37:43 +0200 Subject: input: stdin is 0, not 1 Oops. I can never remember this right. --- input/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3