From 84eb729bd4b4e20665abb79c2f27bfc7d6ad421a Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 6 Sep 2014 07:35:27 +0200 Subject: [PATCH] Don't start the browser on restarts (fixes #636) --- cmd/syncthing/monitor.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/syncthing/monitor.go b/cmd/syncthing/monitor.go index 786ef107d..05c0611be 100644 --- a/cmd/syncthing/monitor.go +++ b/cmd/syncthing/monitor.go @@ -95,6 +95,10 @@ func monitorMain() { l.Infoln("Syncthing exited:", err) time.Sleep(1 * time.Second) + + // Let the next child process know that this is not the first time + // it's starting up. + os.Setenv("STRESTART", "yes") } }