Orphaned Processes
Author: jthorpe6Created Mar 15, 2026Updated Jun 7, 2026
Describe the bug Similar to https://github.com/charmbracelet/soft-serve/issues/262 I run soft-serve in a docker container, and have a mirrored repo, which I suspect is causing the amount of orphaned processes, as I don't do many git operations to other repos that often.
$ ps auxw | grep git | grep "defunct" | wc -l
653$ ps auxw | grep $(ps o ppid $(ps auxw | grep git | grep "defunct" | head -n 1 | awk '{print $2}') | tail -n 1)
root 3283003 0.0 0.4 1289376 32832 ? Ssl Mar13 0:19 /usr/local/bin/soft serverestarting the container fixes this.
$ ps auxw | grep git | grep defunct | wc -l
655
$ docker restart soft-serve
soft-serve
$ ps auxw | grep git | grep defunct | wc -l
0Environment (please complete the following information):
- Host OS:
$ uname -rvm
6.12.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.62-1+rpt1 (2025-12-18) aarch64- Docker version:
$ docker --version
Docker version 29.3.0, build 5927d80- soft-serve version
$ docker image inspect charmcli/soft-serve | grep created
"org.opencontainers.image.created": "2026-03-06T01:36:01Z",$ docker exec -it soft-serve /usr/local/bin/soft -v
soft version v0.11.5 (879ece7)Source: charmbracelet/soft-serve