diff options
author | Valery Piashchynski <[email protected]> | 2020-10-27 15:16:55 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-10-27 15:16:55 +0300 |
commit | d199ef71b9644afbbba064c317cd0991be1c2443 (patch) | |
tree | f777eb90f10ca0e7dbc46227fc76c61f02111946 /socket_factory.go | |
parent | 91cf918b30938129609323ded53e190385e019a6 (diff) |
Supervised pool
Diffstat (limited to 'socket_factory.go')
-rwxr-xr-x | socket_factory.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/socket_factory.go b/socket_factory.go index ed151f2d..6f29db22 100755 --- a/socket_factory.go +++ b/socket_factory.go @@ -109,7 +109,7 @@ func (f *SocketFactory) SpawnWorkerWithContext(ctx context.Context, cmd *exec.Cm if err != nil { err = multierr.Combine( err, - w.Kill(context.Background()), + w.Kill(), w.Wait(context.Background()), ) @@ -158,7 +158,7 @@ func (f *SocketFactory) SpawnWorker(cmd *exec.Cmd) (WorkerBase, error) { rl, err := f.findRelay(w) if err != nil { errs = append(errs, err.Error()) - err = w.Kill(ctx) + err = w.Kill() if err != nil { errs = append(errs, err.Error()) } |