Remove need for externally alloced sigdata struct
authorKevin Klues <klueska@cs.berkeley.edu>
Tue, 10 Nov 2015 21:52:31 +0000 (13:52 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 16 Nov 2015 23:15:03 +0000 (15:15 -0800)
commit974db38bcd785a3b9c353ceffc8fe0b1cd5e229b
treef90984036908da21207d765ac1485418049d2bdd
parent8864d481404db2b103a0be6bd2c0d9d2cd193b8a
Remove need for externally alloced sigdata struct

We now use space on the stack for storing the original user context and
and any signal specific state when triggering a posix signal on a
pthread.

As a side effect, we should now be able to safely longjmp out of a
signal handler because there is no longer any external state
to clean up when the signal handler completes.

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