Use a monitor process to handle panics and restarts (fixes #586)

This commit is contained in:
Jakob Borg
2014-09-02 13:08:24 +02:00
parent e9c7970ea4
commit 10f0713257
4 changed files with 189 additions and 91 deletions

View File

@@ -14,7 +14,8 @@ import (
)
func init() {
if os.Getenv("STHEAPPROFILE") != "" {
if innerProcess && os.Getenv("STHEAPPROFILE") != "" {
l.Debugln("Starting heap profiling")
go saveHeapProfiles()
}
}