CommandContext returns an exec.Cmd that calls "coder agent-exec" prior to exec'ing the provided command if CODER_PROC_PRIO_MGMT is set, otherwise a normal exec.Cmd is returned. All instances of exec.Cmd should flow through this function to ensure proper resource constraints are applied to the child
(ctx context.Context, cmd string, args ...string)
| 36 | // is returned. All instances of exec.Cmd should flow through this function to ensure |
| 37 | // proper resource constraints are applied to the child process. |
| 38 | CommandContext(ctx context.Context, cmd string, args ...string) *exec.Cmd |
| 39 | // PTYCommandContext returns an pty.Cmd that calls "coder agent-exec" prior to exec'ing |
| 40 | // the provided command if CODER_PROC_PRIO_MGMT is set, otherwise a normal pty.Cmd |
| 41 | // is returned. All instances of pty.Cmd should flow through this function to ensure |
no outgoing calls