You can make the read() fail by closing the fd…
sensicom <email@example.com> wrote:
basically I have a one off situation where I want to unblock the serial port
for a single read - i.e. maybe somehow send it a dummy input string?
If I have one thread blocked on a read on a serial port is there any way in
software that another thread can force the first thread to unblock without
having received anything on the serial port. I’ve tried tcinject but it
fails moaning about a inappropriate i/o operation…
Wojtek Lerch QNX Software Systems Ltd.