bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix blocking read timeouts at a small probability


From: Koichi Murase
Subject: Re: [PATCH] Fix blocking read timeouts at a small probability
Date: Thu, 11 Feb 2021 08:00:03 +0800

2021年2月11日(木) 7:28 Chet Ramey <chet.ramey@case.edu>:
> On 2/10/21 6:21 PM, Koichi Murase wrote:
> > 2021年2月11日(木) 7:02 Chet Ramey <chet.ramey@case.edu>:
> >> You'll have to hook the timeout code into the pselect/select calls, as you
> >> suspect. Take a shot and it and send me what you come up with.
> >
> > Thank you for the comment. I'll try it when I have time this week.
>
> Let me know what kind of interface you are thinking about.

I haven't started to work on it so haven't yet decided, but I thought,
for example, some variable like `rl_timeout_point' to which one can
store a time point that the editing times out. Or, if that's not
acceptable, prepare a new function `readline_with_timeout
(prompt,timeout_duration)'? Anyway, I need to carefully see the
existing interface of readline and want to think of what is the
natural interface for this new one.

> I have a couple of ideas.

I'm interested in them.

Thank you,
Koichi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]