input: stdin is 0, not 1

Oops. I can never remember this right.
This commit is contained in:
wm4 2014-08-25 21:37:43 +02:00
parent f104ef1282
commit 6410c4c8ef
1 changed files with 1 additions and 1 deletions

View File

@ -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)