Re: Trying to interrupt a blocking read...

2019-09-12 Thread Benjamin Ellsworth
maybe there's something I don't understand... Thanks. On 10-Sep-19 10:18 AM, Joel Sherrill wrote: On Tue, Sep 10, 2019 at 12:09 AM Benjamin Ellsworth <2gigspambuc...@gmail.com> wrote: Hello, The code I'm working with currently does a read() on a device that has been open

Re: Trying to interrupt a blocking read...

2019-09-12 Thread Benjamin Ellsworth
nd VTIME. Thank you very much for the pointer. Thanks, --Ben On 10-Sep-19 10:18 AM, Joel Sherrill wrote: On Tue, Sep 10, 2019 at 12:09 AM Benjamin Ellsworth <2gigspambuc...@gmail.com> wrote: Hello, The code I'm working with currently does a read() on a device that has been opened

Trying to interrupt a blocking read...

2019-09-09 Thread Benjamin Ellsworth
Hello, The code I'm working with currently does a read() on a device that has been opened with an open() call (a UART if that matters). It nicely blocks waiting for a character (potentially forever). I now need that read to be interrupted... I looked for pselect() so it can block until I t