Commit 14c4c69d authored by Linus Torvalds's avatar Linus Torvalds

Fix missing break, causing sigprocmask(SIG_SETMASK ...) to always

return an error.

Interestingly, nobody much seems to care. Apparently few programs
check the error value.
parent f3cee469
...@@ -1611,6 +1611,7 @@ int sigprocmask(int how, sigset_t *set, sigset_t *oldset) ...@@ -1611,6 +1611,7 @@ int sigprocmask(int how, sigset_t *set, sigset_t *oldset)
break; break;
case SIG_SETMASK: case SIG_SETMASK:
current->blocked = *set; current->blocked = *set;
break;
default: default:
error = -EINVAL; error = -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment