PTYCommandContext returns an pty.Cmd that calls "coder agent-exec" prior to exec'ing the provided command if CODER_PROC_PRIO_MGMT is set, otherwise a normal pty.Cmd is returned. All instances of pty.Cmd should flow through this function to ensure proper resource constraints are applied to the child
(ctx context.Context, cmd string, args ...string)
| 41 | // is returned. All instances of pty.Cmd should flow through this function to ensure |
| 42 | // proper resource constraints are applied to the child process. |
| 43 | PTYCommandContext(ctx context.Context, cmd string, args ...string) *pty.Cmd |
| 44 | } |
| 45 | |
| 46 | func NewExecer() (Execer, error) { |
no outgoing calls