vpnkit icon indicating copy to clipboard operation
vpnkit copied to clipboard

Resource leak spawning uname subprocess call on Darwin

Open tmoschou opened this issue 2 years ago • 0 comments

The uname command / subprocess spawned by vpnkit is not cleaned up / reaped appropriately. The result is a zombie subprocess which lingers in the process table.

This seems to be due to not calling Unix.close_process_in instead of close_in in src/bin/config/discover.ml

Screenshot of htop

Screen Shot 2022-08-14 at 5 24 14 pm

Output of ps -o pid,state,xstat,command -p 72041

  PID STAT XSTAT COMMAND
72041 Z        0 (uname)

tmoschou avatar Aug 14 '22 08:08 tmoschou