]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
gcore: Forward pending signals when detaching from the target.
authormarkj <markj@FreeBSD.org>
Fri, 24 Jun 2016 20:21:32 +0000 (20:21 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 24 Jun 2016 20:21:32 +0000 (20:21 +0000)
commitc5064f0323016fc0ff3a8d674ba24995ac35c1e6
tree3ca0d2a50c3cebd344e5b58baf5217223b3d87f8
parent452fe84d9bb6b8ee9f4c237029a2d5db04aa41fe
gcore: Forward pending signals when detaching from the target.

Otherwise gcore's ptrace attach operation can race with delivery of a
signal and cause it to be lost.

In collaboration with: Suraj Raju <sraju@isilon.com>
Reviewed by: bdrewery
Approved by: re (gjb, kib)
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
usr.bin/gcore/elfcore.c