aboutsummaryrefslogtreecommitdiff
path: root/prefork/prefork.go
diff options
context:
space:
mode:
Diffstat (limited to 'prefork/prefork.go')
-rw-r--r--prefork/prefork.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/prefork/prefork.go b/prefork/prefork.go
index 225912d..d40bded 100644
--- a/prefork/prefork.go
+++ b/prefork/prefork.go
@@ -210,7 +210,8 @@ func (p *Prefork) prefork(addr string) (err error) {
p.logger().Printf("one of the child prefork processes exited with "+
"error: %v", sig.err)
- if exitedProcs++; exitedProcs > p.RecoverThreshold {
+ exitedProcs++
+ if exitedProcs > p.RecoverThreshold {
p.logger().Printf("child prefork processes exit too many times, "+
"which exceeds the value of RecoverThreshold(%d), "+
"exiting the master process.\n", exitedProcs)