Remove use of non-standard sigaction_t

This commit is contained in:
Todd C. Miller
2017-05-12 10:02:18 -06:00
parent b5c88e52b1
commit d979898e71
16 changed files with 14 additions and 38 deletions

View File

@@ -495,7 +495,7 @@ exec_monitor(struct command_details *details, sigset_t *oset,
{
struct monitor_closure mc = { 0 };
struct command_status cstat;
sigaction_t sa;
struct sigaction sa;
int errpipe[2];
debug_decl(exec_monitor, SUDO_DEBUG_EXEC);

View File

@@ -469,7 +469,7 @@ handle_sigchld_nopty(struct exec_closure_nopty *ec)
* resume, potentially stopping sudo with SIGTTOU while the command
* continues to run.
*/
sigaction_t sa, osa;
struct sigaction sa, osa;
pid_t saved_pgrp = -1;
int fd, signo = WSTOPSIG(status);

View File

@@ -392,7 +392,7 @@ static int
suspend_sudo(int signo, pid_t ppgrp)
{
char signame[SIG2STR_MAX];
sigaction_t sa, osa;
struct sigaction sa, osa;
int ret = 0;
debug_decl(suspend_sudo, SUDO_DEBUG_EXEC);
@@ -1111,7 +1111,7 @@ exec_pty(struct command_details *details, struct command_status *cstat)
struct exec_closure_pty ec = { 0 };
struct plugin_container *plugin;
sigset_t set, oset;
sigaction_t sa;
struct sigaction sa;
pid_t ppgrp;
int sv[2];
debug_decl(exec_pty, SUDO_DEBUG_EXEC)

View File

@@ -36,7 +36,7 @@
static struct signal_state {
int signo;
int restore;
sigaction_t sa;
struct sigaction sa;
} saved_signals[] = {
{ SIGALRM }, /* SAVED_SIGALRM */
{ SIGCHLD }, /* SAVED_SIGCHLD */

View File

@@ -318,7 +318,7 @@ main(int argc, char *argv[], char *envp[])
* signal. However, we want to avoid having sudo dump core itself.
*/
if (WIFSIGNALED(status)) {
sigaction_t sa;
struct sigaction sa;
if (WCOREDUMP(status))
disable_coredump(false);

View File

@@ -50,7 +50,7 @@ sigttou(int signo)
int
tcsetpgrp_nobg(int fd, pid_t pgrp_id)
{
sigaction_t sa, osa;
struct sigaction sa, osa;
int rc;
/*

View File

@@ -84,8 +84,8 @@ char *
tgetpass(const char *prompt, int timeout, int flags,
struct sudo_conv_callback *callback)
{
sigaction_t sa, savealrm, saveint, savehup, savequit, saveterm;
sigaction_t savetstp, savettin, savettou;
struct sigaction sa, savealrm, saveint, savehup, savequit, saveterm;
struct sigaction savetstp, savettin, savettou;
char *pass;
static const char *askpass;
static char buf[SUDO_CONV_REPL_MAX + 1];