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

@@ -15,7 +15,7 @@ import (
)
func init() {
if os.Getenv("STPERFSTATS") != "" {
if innerProcess && os.Getenv("STPERFSTATS") != "" {
go savePerfStats(fmt.Sprintf("perfstats-%d.csv", syscall.Getpid()))
}
}