Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54640d23 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

fcntl: Don't set si_code to SI_SIGIO when sig == SIGPOLL



When fixing things to avoid ambiguous cases I had a thinko
and included SIGPOLL/SIGIO in with all of the other signals
that have signal specific si_codes.  Which is completely wrong.

Fix that.

Reported-by: default avatarVince Weaver <vincent.weaver@maine.edu>
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 2bd6bf03
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -749,7 +749,7 @@ static void send_sigio_to_task(struct task_struct *p,
			 * specific si_codes.  In that case use SI_SIGIO instead
			 * to remove the ambiguity.
			 */
			if (sig_specific_sicodes(signum))
			if ((signum != SIGPOLL) && sig_specific_sicodes(signum))
				si.si_code = SI_SIGIO;

			/* Make sure we are called with one of the POLL_*