blocked read on a Serial port

Hi

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…

Cheers

Jim

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?

Jim wrote:

Hi

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…

Cheers

Jim

You can make the read() fail by closing the fd…

sensicom <sensicom@netscapeonline.co.uk> 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?

Jim wrote:

Hi

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…

Cheers

Jim


Wojtek Lerch QNX Software Systems Ltd.