mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +00:00
Restarting monitor process is still considered a restart (fixes #809)
This commit is contained in:
parent
e50469d84e
commit
828bbc407f
@ -78,6 +78,10 @@ func monitorMain() {
|
|||||||
l.Fatalln(err)
|
l.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Let the next child process know that this is not the first time
|
||||||
|
// it's starting up.
|
||||||
|
os.Setenv("STRESTART", "yes")
|
||||||
|
|
||||||
stdoutMut.Lock()
|
stdoutMut.Lock()
|
||||||
stdoutFirstLines = make([]string, 0, 10)
|
stdoutFirstLines = make([]string, 0, 10)
|
||||||
stdoutLastLines = make([]string, 0, 50)
|
stdoutLastLines = make([]string, 0, 50)
|
||||||
@ -123,10 +127,6 @@ func monitorMain() {
|
|||||||
|
|
||||||
l.Infoln("Syncthing exited:", err)
|
l.Infoln("Syncthing exited:", err)
|
||||||
time.Sleep(1 * time.Second)
|
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")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user