]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix some nits in fork_exit() so it more properly duplicates the backend
authorjhb <jhb@FreeBSD.org>
Fri, 14 Dec 2001 23:37:35 +0000 (23:37 +0000)
committerjhb <jhb@FreeBSD.org>
Fri, 14 Dec 2001 23:37:35 +0000 (23:37 +0000)
commit0c1bfda97435eb852eb0df002eb7a86cc1fd4c88
tree074c04b0152797b2bd2dc4e5bd3ac24c10606ade
parent12cc1b9a91930f83ea606b9bf81d05fd843edec9
Fix some nits in fork_exit() so it more properly duplicates the backend
of mi_switch:
- Set the oncpu value for the current thread.
- Always set switchticks, not just in the SMP case.
- Add a KTR entry for fork_exit that is the same as the "new proc"
  entry in mi_switch().
- Release sched_lock a bit later like we do with mi_switch().
sys/kern/kern_fork.c