Skip to content

Commit

Permalink
kernel/poll: fix signal.signaled not being set when k_poll() waits
Browse files Browse the repository at this point in the history
Change-Id: I73d906e4cb4a3d359e1ec193db933a95b4739611
Signed-off-by: Benjamin Walsh <[email protected]>
  • Loading branch information
bboccoqq authored and Anas Nashif committed Feb 9, 2017
1 parent 5bbd683 commit 3c1ab5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ int k_poll_signal(struct k_poll_signal *signal, int result)
int must_reschedule;

signal->result = result;
signal->signaled = 1;

if (!signal->poll_event) {
signal->signaled = 1;
irq_unlock(key);
return 0;
}
Expand Down

0 comments on commit 3c1ab5d

Please sign in to comment.