diff options
author | Wolfy-J <[email protected]> | 2019-12-23 14:43:47 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-12-23 14:43:47 +0300 |
commit | c7b0a4a81827284f7565c56aa476eea34fb6382f (patch) | |
tree | ee30e93169c37fb058fbe55af6b3f954eabd9646 /socket_factory.go | |
parent | 7f694966730f6dac09d0d0ea3bf51276b8e4dfe4 (diff) |
- test fixes
Diffstat (limited to 'socket_factory.go')
-rw-r--r-- | socket_factory.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/socket_factory.go b/socket_factory.go index 43059e8a..84515f64 100644 --- a/socket_factory.go +++ b/socket_factory.go @@ -51,7 +51,12 @@ func (f *SocketFactory) SpawnWorker(cmd *exec.Cmd) (w *Worker, err error) { rl, err := f.findRelay(w, f.tout) if err != nil { - go func(w *Worker) { w.Kill() }(w) + go func(w *Worker) { + err := w.Kill() + if err != nil { + fmt.Println(fmt.Errorf("error killing the worker %v", err)) + } + }(w) if wErr := w.Wait(); wErr != nil { if _, ok := wErr.(*exec.ExitError); ok { |