Skip to content

Zombie processes left after each git command which interacts with remote repo #1062

@bitme345

Description

@bitme345

git commands which require interaction with remote repo leaves zombie proceses. 1 process per each git command.

docker exec -it repro ps -o pid,ppid,stat,tty,args

PID   PPID  STAT TT     COMMAND
    1     0 S    ?      npm start
   18     1 S    ?      {MainThread} node dist/index.js
   39     1 Z    ?      [git]
   45     1 Z    ?      [git]
   57     1 Z    ?      [git]
   63     1 Z    ?      [git]
  154     0 R    136,0  ps -o pid,ppid,stat,tty,args

Minimal reproducible example

Observed when running in node:24-alpine docker image
Does not happen in MacOS

simple-git version 3.28.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions