| 39 | } |
| 40 | |
| 41 | type wrapper struct { |
| 42 | args []string |
| 43 | env []string |
| 44 | ctx context.Context |
| 45 | path string |
| 46 | dir string |
| 47 | cmd *exec.Cmd |
| 48 | sysProcAttr *syscall.SysProcAttr |
| 49 | |
| 50 | // When a context is provided and it is canceled while the process is |
| 51 | // running, we send SIGTERM to the process. if, after this period, the |
| 52 | // process is still running, we send SIGKILL. If left unspecified, the |
| 53 | // default is 3 seconds. |
| 54 | gracefulTerminationOnCancelTimeout time.Duration |
| 55 | |
| 56 | // Number of times the command was "killed" after the context was canceled. |
| 57 | killedByCancel uint32 |
| 58 | |
| 59 | osEnv bool |
| 60 | ctxCancellation bool |
| 61 | } |
| 62 | |
| 63 | func (w *wrapper) StatsTags() statsd.Tags { |
| 64 | return statsd.Tags{ |
nothing calls this directly
no outgoing calls
no test coverage detected