diff options
Diffstat (limited to 'pool')
-rwxr-xr-x | pool/static_pool.go | 5 |
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() |