Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write procedure can't be interrupted by any signal #9

Open
wzab opened this issue May 28, 2020 · 0 comments
Open

Write procedure can't be interrupted by any signal #9

wzab opened this issue May 28, 2020 · 0 comments

Comments

@wzab
Copy link

wzab commented May 28, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant