Fix bug in pthread_sigmask() semantics.
authorKevin Klues <klueska@cs.berkeley.edu>
Tue, 27 Oct 2015 17:12:37 +0000 (10:12 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 16 Nov 2015 23:15:03 +0000 (15:15 -0800)
commit8577818aa87cdfa76d0e3b2d278bcdb9c71e71c6
tree3f3ae5f5f1060339c945b467aba9d1d04240e1b7
parentbef4b38c7125f7b5b27c995e5a07c23d6af46516
Fix bug in pthread_sigmask() semantics.

Previously, the 'how' parameter was not being ignored correctly if 'set'
was NULL. Moreover, we were not setting the value of 'oset' properly in
cases where 'set' was NULL and 'how' should be ignored. This patch
attempts to fix these semantics to match the specification in:

http://linux.die.net/man/2/sigprocmask

Signed-off-by: Kevin Klues <klueska@cs.berkeley.edu>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/pthread/pthread.c