]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/commit
MFC 253887,253977:
authorhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 Aug 2013 20:30:22 +0000 (20:30 +0000)
committerhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 Aug 2013 20:30:22 +0000 (20:30 +0000)
commitc16954fc08cf8fd2c6b8b365fc2ee18b5eaf92a0
tree39165be1d448ab90877ac49a5e50dae149bf11f2
parente7b581b3de29585d5d062df5f260bc06c2af9178
MFC 253887,253977:

- Use pget(PGET_CANDEBUG | PGET_NOTWEXIT) to determine if the specified
  PID is valid for monitoring in FILEMON_SET_PID ioctl.

- Set the monitored PID to -1 when the process exits.

Suggested by: jilles
Tested by: sjg
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/releng/9.2@254101 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/filemon/filemon.c
sys/dev/filemon/filemon_wrapper.c