mciupak/nrf24

Write procedure can't be interrupted by any signal

wzab opened this issue · 0 comments

wzab commented

Dear Marcin,

I'm afraid, your write procedure can't be interrupted (via CTRL+C or sending any signal) in case of any hardware problems.
The reason is that you do not check the result of wait_event_interruptible in line:

wait_event_interruptible(p->write_wait_queue, p->write_done);

You should interrupt the write loop and report an error here.

With best regards,
Wojtek