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:
Todd C. Miller
2023-03-24 11:01:58 -06:00
parent 11739e3def
commit b81c5e8dac
3 changed files with 9 additions and 6 deletions

View File

@@ -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];