Rename signal handler to avoid name clash with one in exec.c

This commit is contained in:
Todd C. Miller
2013-01-16 15:28:36 -05:00
parent 90c6ace770
commit 2be741d8ae

View File

@@ -56,7 +56,7 @@
static volatile sig_atomic_t signo[NSIG];
static void handler(int);
static void tgetpass_handler(int);
static char *getln(int, char *, size_t, int);
static char *sudo_askpass(const char *, const char *);
@@ -130,7 +130,7 @@ restart:
zero_bytes(&sa, sizeof(sa));
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_INTERRUPT; /* don't restart system calls */
sa.sa_handler = handler;
sa.sa_handler = tgetpass_handler;
(void) sigaction(SIGALRM, &sa, &savealrm);
(void) sigaction(SIGINT, &sa, &saveint);
(void) sigaction(SIGHUP, &sa, &savehup);
@@ -315,7 +315,7 @@ getln(int fd, char *buf, size_t bufsiz, int feedback)
}
static void
handler(int s)
tgetpass_handler(int s)
{
if (s != SIGALRM)
signo[s] = 1;