diff options
author | wm4 <wm4@nowhere> | 2014-08-25 21:37:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-25 21:39:24 +0200 |
commit | 6410c4c8efbb659692ef70bc94c1190b9c08117d (patch) | |
tree | e00f1f875cead259f2e3b9c15d52c031366979b0 /input | |
parent | f104ef12827278c5620b57a34d066b333bbdfa32 (diff) |
input: stdin is 0, not 1
Oops. I can never remember this right.
Diffstat (limited to 'input')
-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) |