Do some work on keeping better track of stopped/continued state.
I'm not sure what happenned to the original setting of the P_CONTINUED flag. it appears to have been lost in the paper shuffling... Submitted by: David Xu <bsddiy@yahoo.com>
This commit is contained in:
parent
0f2fe5396f
commit
6933e3c12b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101500
@ -1297,6 +1297,7 @@ psignal(p, sig)
|
||||
(action == SIG_DFL))
|
||||
return;
|
||||
SIG_CONTSIGMASK(p->p_siglist);
|
||||
p->p_flag &= ~P_CONTINUED;
|
||||
}
|
||||
SIGADDSET(p->p_siglist, sig);
|
||||
signotify(p); /* uses schedlock */
|
||||
@ -1345,6 +1346,7 @@ psignal(p, sig)
|
||||
* Otherwise, process goes back to sleep state.
|
||||
*/
|
||||
p->p_flag &= ~P_STOPPED_SGNL;
|
||||
p->p_flag |= P_CONTINUED;
|
||||
if (action == SIG_DFL) {
|
||||
SIGDELSET(p->p_siglist, sig);
|
||||
} else if (action == SIG_CATCH) {
|
||||
|
Loading…
Reference in New Issue
Block a user