Re: Trying to interrupt a blocking read...

2019-09-12 Thread Benjamin Ellsworth
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 opened with an open() call (a UART if that m

Re: Trying to interrupt a blocking read...

2019-09-12 Thread Benjamin Ellsworth
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 with an open() call (

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