summaryrefslogtreecommitdiff
path: root/static_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'static_pool.go')
-rw-r--r--static_pool.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/static_pool.go b/static_pool.go
index 336ae520..69edfd35 100644
--- a/static_pool.go
+++ b/static_pool.go
@@ -81,8 +81,9 @@ func NewPool(cmd func() *exec.Cmd, factory Factory, cfg Config) (*StaticPool, er
return p, nil
}
-// WatchWorkers enables worker watching.
-func (p *StaticPool) WatchWorkers(w Watcher) {
+// Watch enables worker watching (to destroy expired workers or workers which experience
+// memory leaks).
+func (p *StaticPool) Watch(w Watcher) {
p.mul.Lock()
defer p.mul.Unlock()