summaryrefslogtreecommitdiff
path: root/pool/static_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'pool/static_pool.go')
-rwxr-xr-xpool/static_pool.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pool/static_pool.go b/pool/static_pool.go
index 4ff57173..9897b9e7 100755
--- a/pool/static_pool.go
+++ b/pool/static_pool.go
@@ -312,6 +312,11 @@ func (sp *StaticPool) execDebug(p *payload.Payload) (*payload.Payload, error) {
return nil, err
}
+ go func() {
+ // read the exit status to prevent process to be a zombie
+ _ = sw.Wait()
+ }()
+
// destroy the worker
sw.State().Set(worker.StateDestroyed)
err = sw.Kill()