diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-05-06 09:33:23 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2021-05-06 09:33:23 +0000 |
commit | 47b30dbe88ac2f80227dfc0d22f30e1f3df6968d (patch) | |
tree | 20b37542eadb60faa7e9bcebded6db2f24de17c9 /usr.bin | |
parent | 8d95726184cbc8ca57a56e02fa388e367f848abd (diff) |
Refactor routines to stop/unstop processes and save the corresponding signal.
- Move the "hack" involving P_SINTR to avoid grabbing the SCHED_LOCK()
recursively closer to where it is necessary, in proc_stop()
- Introduce proc_unstop(), the symmetric routine to proc_stop(), which
manipulates `ps_xsig' and use it whenever a SSTOPed thread needs to be
awaken.
- Manipulate `ps_xsig' only in proc_stop/unstop()
ok kettenis@
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions