mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 18:19:27 +08:00
Update to FreeBSD stable/12 2019-06-26
Git mirror commit aa83598855d14cdbf7aef6b05d0617e90f87ca2f.
This commit is contained in:
@@ -590,6 +590,19 @@ sleepq_catch_signals(void *wchan, int pri)
|
||||
} else {
|
||||
mtx_unlock(&ps->ps_mtx);
|
||||
}
|
||||
|
||||
/*
|
||||
* Do not go into sleep if this thread was the
|
||||
* ptrace(2) attach leader. cursig() consumed
|
||||
* SIGSTOP from PT_ATTACH, but we usually act
|
||||
* on the signal by interrupting sleep, and
|
||||
* should do that here as well.
|
||||
*/
|
||||
if ((td->td_dbgflags & TDB_FSTP) != 0) {
|
||||
if (ret == 0)
|
||||
ret = EINTR;
|
||||
td->td_dbgflags &= ~TDB_FSTP;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Lock the per-process spinlock prior to dropping the PROC_LOCK
|
||||
|
Reference in New Issue
Block a user