summaryrefslogtreecommitdiff
path: root/socket_factory.go
diff options
context:
space:
mode:
authorParamtamtam <[email protected]>2019-12-24 10:48:49 +0500
committerGitHub <[email protected]>2019-12-24 10:48:49 +0500
commitfbd2022729ab7ffe4eee8ba8b7357ba179e4d010 (patch)
treefa6b66b18259282b2efe00a41c445a3fa40aa701 /socket_factory.go
parent3f7d8bc007a4efdd48bb16253c2686006f0f9cda (diff)
parent75a817edcff22e721dcc3a7fa5590b866f630403 (diff)
Merge branch 'master' into master
Diffstat (limited to 'socket_factory.go')
-rw-r--r--socket_factory.go7
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 {