Christian S.J. Peron 50ed6e0713 Make sure that we refresh the PID on read(2) and write(2) operations.
This fixes the process portion of the bpf(4) stats if the peer forks
into the background after it's opened the descriptor.  This bug
results in the following behavior for netstat -B:

# netstat -B
  Pid  Netif  Flags      Recv      Drop     Match Sblen Hblen Command
netstat: kern.proc.pid failed: No such process
78023    em0 p--s--   2237404     43119   2237404 13986     0 ??????

MFC after:	1 week
2007-10-12 14:58:34 +00:00
..
2007-10-12 03:03:16 +00:00
2007-10-12 03:03:16 +00:00
2007-02-28 22:05:30 +00:00
2007-03-19 18:01:39 +00:00
2007-06-11 12:19:34 +00:00