]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFCr350610:
authorMariusz Zaborski <oshogbo@FreeBSD.org>
Tue, 10 Sep 2019 20:14:52 +0000 (20:14 +0000)
committerMariusz Zaborski <oshogbo@FreeBSD.org>
Tue, 10 Sep 2019 20:14:52 +0000 (20:14 +0000)
commit73684122a0721698d560d02ce6b5b1efa36cf05c
tree71245880fe67b30b5fd0f5e0b57bde598e61bebf
parent99bda38cae505674cd0c754b72cad71a8b08bb11
MFCr350610:
  exit1: postpone clearing P_TRACED flag until the proctree lock is acquired

  In case of the process being debugged. The P_TRACED is cleared very early,
  which would make procdesc_close() not calling proc_clear_orphan().
  That would result in the debugged process can not be able to collect
  status of the process with process descriptor.

  Reviewed by:  markj, kib
  Tested by:    pho
sys/kern/kern_exit.c