WithReaperStopped sets a channel that is closed after the reaper goroutine has fully exited.
(ch chan struct{})
| 56 | // WithReaperStopped sets a channel that is closed after the |
| 57 | // reaper goroutine has fully exited. |
| 58 | func WithReaperStopped(ch chan struct{}) Option { |
| 59 | return func(o *options) { |
| 60 | o.ReaperStopped = ch |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // WithReapLock sets a mutex shared between the reaper and Wait4. |
| 65 | // The reaper holds the write lock while reaping, and ForkReap |