]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix race when testing for ETXTBSY writing to ${n0} (process image) by making
authorEnji Cooper <ngie@FreeBSD.org>
Thu, 16 Apr 2015 03:35:47 +0000 (03:35 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Thu, 16 Apr 2015 03:35:47 +0000 (03:35 +0000)
commitf95c930e6701aa675377bc5871ea490dd565eeba
tree214207b671b837284271572c20725f1749ed09d9
parent546afaf83de36c4d0edb76a72b42b834aacbd08f
Fix race when testing for ETXTBSY writing to ${n0} (process image) by making
sure the process has been started beforehand with pgrep

pkill the process afterwards to make sure it's dead when the unlink is run
(not strictly required, but I was being conservative)

MFC after: 1 week
Reviewed by: Darius O'Conner, mjohnston
Sponsored by: EMC / Isilon Storage Division
contrib/pjdfstest/tests/open/20.t
contrib/pjdfstest/tests/truncate/11.t