Count returns the number of active child processes
()
| 78 | |
| 79 | // Count returns the number of active child processes |
| 80 | func (ct *ChildTracker) Count() int { |
| 81 | ct.mu.RLock() |
| 82 | defer ct.mu.RUnlock() |
| 83 | return len(ct.children) |
| 84 | } |
| 85 | |
| 86 | // SignalAll sends a signal to all child processes |
| 87 | func (ct *ChildTracker) SignalAll(sig syscall.Signal) { |
no outgoing calls