HomeFreeBSD

Make sure that we refresh the PID on read(2) and write(2) operations.
rS172582Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

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

Details

Provenance
csjpAuthored on
Parents
rS172581: Add a signal handler for SIGINT to make sure that the PID file
Branches
Unknown
Tags
Unknown

Event Timeline