Commit e59e82b
Neha Singla
Fix zombie process accumulation from git operations in cloud environment
Git commands spawn helper processes (git-credential-helper, git-remote-https, ssh)
that become zombies when the main git process exits before children complete. This
is problematic in cloud/container environments where the application runs as PID 1
or under minimal init systems that don't reliably reap orphaned processes.
Added SIGCHLD signal handler to automatically reap zombie processes system-wide
using non-blocking waitpid(), preventing resource leaks without affecting normal
git operations.1 parent c5585fd commit e59e82b
1 file changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
58 | 89 | | |
59 | 90 | | |
60 | 91 | | |
| |||
0 commit comments