From 39461cb60363d8d1c0b5139a4a54e2c9b3986439 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 19 Sep 2019 09:56:27 +0100 Subject: [PATCH] Don't os.Exit --- build | 2 ++ cmd/yggdrasil/main.go | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build b/build index d11f991d..7ca5f4fa 100755 --- a/build +++ b/build @@ -1,5 +1,7 @@ #!/bin/sh +set -ef + PKGSRC=${PKGSRC:-github.com/yggdrasil-network/yggdrasil-go/src/version} PKGNAME=${PKGNAME:-$(sh contrib/semver/name.sh)} PKGVER=${PKGVER:-$(sh contrib/semver/version.sh --bare)} diff --git a/cmd/yggdrasil/main.go b/cmd/yggdrasil/main.go index 3b7c9220..33a8769d 100644 --- a/cmd/yggdrasil/main.go +++ b/cmd/yggdrasil/main.go @@ -296,7 +296,6 @@ func (n *node) shutdown() { n.multicast.Stop() n.tuntap.Stop() n.core.Stop() - os.Exit(0) } func (n *node) sessionFirewall(pubkey *crypto.BoxPubKey, initiator bool) bool {