[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading /dev/stdin Input with a Timeout
From: |
Eli Zaretskii |
Subject: |
Re: Reading /dev/stdin Input with a Timeout |
Date: |
Thu, 14 Dec 2023 09:40:02 +0200 |
> From: J Naman <jnaman2@gmail.com>
> Date: Wed, 13 Dec 2023 20:07:55 -0500
>
> Gawk Version: GNU Awk 5.3.0, API 4.0
> Machine: AMD64(64-bit gawk)
> OS: Windows_NT = Win 7 [Version 6.1.7601]
> platform: mingw
> LC_ALL: C
> I have read: https://www.gnu.org/software/gawk/manual/html_node/Bugs.html
> Yes or No: Yes
>
> Description:
> PROCINFO["/dev/stdin", "READ_TIMEOUT"] = 1000
> getline < "/dev/stdin"
> # does not timeout in 1 second; waits (forever) until Return key is pressed
> # ERRNO is not set if timeout is exceeded
> # Ref: 4.11 Reading Input with a Timeout, p.96
The MinGW port of Gawk can read with timeout only from sockets.
Reading files and devices doesn't currently support READ_TIMEOUT in
the MinGW port. Patches to add such support are welcome.
Thanks.
- Reading /dev/stdin Input with a Timeout, J Naman, 2023/12/13
- Re: Reading /dev/stdin Input with a Timeout, Ed Morton, 2023/12/13
- Message not available
- Re: Reading /dev/stdin Input with a Timeout, Ed Morton, 2023/12/14
- Re: Reading /dev/stdin Input with a Timeout, Ed Morton, 2023/12/14
- Re: Reading /dev/stdin Input with a Timeout, Andrew J. Schorr, 2023/12/14
- Re: Reading /dev/stdin Input with a Timeout, Ed Morton, 2023/12/14
- Re: Reading /dev/stdin Input with a Timeout, arnold, 2023/12/25
- Re: Reading /dev/stdin Input with a Timeout, arnold, 2023/12/25
- Re: Reading /dev/stdin Input with a Timeout, arnold, 2023/12/25
Re: Reading /dev/stdin Input with a Timeout,
Eli Zaretskii <=