Skip to content

Resource leak spawning uname subprocess call on Darwin #592

@tmoschou

Description

@tmoschou

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions