Remove use of non-standard sigaction_t
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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 */
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
||||
/*
|
||||
|
@@ -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];
|
||||
|
Reference in New Issue
Block a user