]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 253887,253977:
authorhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 Aug 2013 17:20:09 +0000 (17:20 +0000)
committerhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 8 Aug 2013 17:20:09 +0000 (17:20 +0000)
commit99d8e9576fd05538ca7c0848daf5362a20bfd64f
treef2ce40d33bd827f6bef2060c8025fe8478367a52
parent2e7a2edfbc0f39753ef5004794c78885662711be
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

git-svn-id: svn://svn.freebsd.org/base/stable/8@254096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/filemon/filemon.c
sys/dev/filemon/filemon_wrapper.c