--- embedaddon/sudo/src/sudo_exec.h 2012/05/29 12:26:49 1.1.1.2 +++ embedaddon/sudo/src/sudo_exec.h 2012/10/09 09:29:52 1.1.1.3 @@ -30,18 +30,23 @@ /* exec.c */ int sudo_execve(const char *path, char *const argv[], char *const envp[], int noexec); int pipe_nonblock(int fds[2]); +extern volatile pid_t cmnd_pid; /* exec_pty.c */ struct command_details; struct command_status; -int fork_pty(struct command_details *details, int sv[], int *maxfd); +int fork_pty(struct command_details *details, int sv[], int *maxfd, sigset_t *omask); int perform_io(fd_set *fdsr, fd_set *fdsw, struct command_status *cstat); int suspend_parent(int signo); void fd_set_iobs(fd_set *fdsr, fd_set *fdsw); +#ifdef SA_SIGINFO +void handler(int s, siginfo_t *info, void *context); +#else void handler(int s); +#endif void pty_close(struct command_status *cstat); void pty_setup(uid_t uid, const char *tty, const char *utmp_user); -void terminate_child(pid_t pid, bool use_pgrp); +void terminate_command(pid_t pid, bool use_pgrp); extern int signal_pipe[2]; /* utmp.c */