Thread (3 messages) 3 messages, 3 authors, 2019-02-21

Re: [PATCH] Input: uinput - Allow uinput_request to be interrupted

From: Rodrigo Rivas Costa <hidden>
Date: 2019-02-18 14:21:20
Also in: lkml

On Sun, Feb 17, 2019 at 09:42:52PM -0300, Marcos Paulo de Souza wrote:
-	if (!wait_for_completion_timeout(&request->done, 30 * HZ)) {
+	if (!wait_for_completion_interruptible_timeout(&request->done,
+							30 * HZ)) {
 		retval = -ETIMEDOUT;
 		goto out;
 	}
Now this function can succeed or fail because of ETIMEDOUT or an
interrupt. I think you should return -EINTR or maybe -ESYSRESTART if
interrupted.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help