When using ptrace(2), push the point where we suspend into exec_cmnd().
This should reduce the amount of time the child has to wait for the parent to use PTRACE_SEIZE to seize control and then PTRACE_CONT to continue the child.
This commit is contained in:
@@ -113,7 +113,7 @@ struct sudo_event_base;
|
||||
struct stat;
|
||||
|
||||
/* exec.c */
|
||||
void exec_cmnd(struct command_details *details, int intercept_fd, int errfd);
|
||||
void exec_cmnd(struct command_details *details, sigset_t *mask, int intercept_fd, int errfd);
|
||||
void terminate_command(pid_t pid, bool use_pgrp);
|
||||
bool sudo_terminated(struct command_status *cstat);
|
||||
|
||||
|
Reference in New Issue
Block a user