summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--src/lib.go9
2 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 88ad35a..17bcd03 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,7 @@ integration-tests = \
tests/cli-opts.sh \
tests/integration.sh \
+.PRECIOUS: $(integration-tests)
$(integration-tests): $(NAME).bin
$(integration-tests): ALWAYS
sh $@
diff --git a/src/lib.go b/src/lib.go
index 5309c63..4ece950 100644
--- a/src/lib.go
+++ b/src/lib.go
@@ -93,7 +93,7 @@ func Start(toAddr string, listener net.Listener) {
if err != nil {
g.Warning(
"Error accepting connection",
- "accept-connection",
+ "accept-connection-error",
"err", err,
)
continue
@@ -103,12 +103,13 @@ func Start(toAddr string, listener net.Listener) {
connTo, err := net.Dial("unix", toAddr)
if err != nil {
- g.Error(
+ g.Warning(
"Error dialing connection",
- "dial-connection",
+ "dial-connection-error",
"err", err,
)
- os.Exit(1)
+ connFrom.Close()
+ continue
}
defer connTo.Close()