Register pty cleanup function in exec_pty(), not exec_cmnd_pty().
We want it to execute in the main sudo process, not the monitor.
This commit is contained in:
@@ -212,7 +212,6 @@ void exec_nopty(struct command_details *details, struct command_status *cstat);
|
||||
|
||||
/* exec_pty.c */
|
||||
bool exec_pty(struct command_details *details, struct command_status *cstat);
|
||||
void pty_cleanup(void);
|
||||
int pty_make_controlling(void);
|
||||
extern int io_fds[6];
|
||||
|
||||
|
Reference in New Issue
Block a user