From fbb32ad9b6a4b6cffea1c5b4292b18c72cdadaf6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 1 Dec 2008 20:29:52 +0000 Subject: on Bernd's request, remove commented-out code snippets --- libc/misc/syslog/syslog.c | 4 ---- libc/pwd_grp/lckpwdf.c | 1 - libc/signal/sigignore.c | 2 -- libc/signal/sigset.c | 2 -- libc/stdlib/abort.c | 1 - libc/sysdeps/linux/common/ssp.c | 1 - 6 files changed, 11 deletions(-) (limited to 'libc') diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c index 32fcd1f2b..da60874b3 100644 --- a/libc/misc/syslog/syslog.c +++ b/libc/misc/syslog/syslog.c @@ -207,10 +207,6 @@ vsyslog(int pri, const char *fmt, va_list ap) memset(&action, 0, sizeof(action)); action.sa_handler = closelog_intern; - /* __sigemptyset(&action.sa_mask); - memset already did it */ - /* Only two errors are possible for sigaction: - * EFAULT (bad address of &oldaction) and EINVAL (invalid signo) - * none of which can happen here. */ sigaction(SIGPIPE, &action, &oldaction); saved_errno = errno; diff --git a/libc/pwd_grp/lckpwdf.c b/libc/pwd_grp/lckpwdf.c index ff98dcb76..9b0b604e0 100644 --- a/libc/pwd_grp/lckpwdf.c +++ b/libc/pwd_grp/lckpwdf.c @@ -111,7 +111,6 @@ lckpwdf (void) memset (&new_act, '\0', sizeof (struct sigaction)); new_act.sa_handler = noop_handler; __sigfillset (&new_act.sa_mask); - /* new_act.sa_flags = 0; */ /* Install new action handler for alarm and save old. */ if (sigaction (SIGALRM, &new_act, &saved_act) < 0) { diff --git a/libc/signal/sigignore.c b/libc/signal/sigignore.c index 9e658c6c6..f484e29fc 100644 --- a/libc/signal/sigignore.c +++ b/libc/signal/sigignore.c @@ -31,8 +31,6 @@ int sigignore (int sig) struct sigaction act; memset(&act, 0, sizeof(act)); - /*__sigemptyset (&act.sa_mask);*/ - /*act.sa_flags = 0;*/ act.sa_handler = SIG_IGN; return sigaction (sig, &act, NULL); diff --git a/libc/signal/sigset.c b/libc/signal/sigset.c index 3efbf3ea3..91f433661 100644 --- a/libc/signal/sigset.c +++ b/libc/signal/sigset.c @@ -55,8 +55,6 @@ __sighandler_t sigset (int sig, __sighandler_t disp) #endif /* SIG_HOLD */ memset(&act, 0, sizeof(act)); - //__sigemptyset (&act.sa_mask); - //act.sa_flags = 0; act.sa_handler = disp; if (sigaction (sig, &act, &oact) < 0) return SIG_ERR; diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c index 901218f8d..9f0fe54b8 100644 --- a/libc/stdlib/abort.c +++ b/libc/stdlib/abort.c @@ -94,7 +94,6 @@ abort_it: if (SIG_DFL) /* if it's constant zero, already done */ act.sa_handler = SIG_DFL; __sigfillset(&act.sa_mask); - /*act.sa_flags = 0; - memset did it */ sigaction(SIGABRT, &act, NULL); goto abort_it; diff --git a/libc/sysdeps/linux/common/ssp.c b/libc/sysdeps/linux/common/ssp.c index 564e14d71..8a84e4893 100644 --- a/libc/sysdeps/linux/common/ssp.c +++ b/libc/sysdeps/linux/common/ssp.c @@ -58,7 +58,6 @@ static void block_signals(void) /* Make the default handler associated with the signal handler */ memset(&sa, 0, sizeof(sa)); __sigfillset(&sa.sa_mask); /* Block all signals */ - /* sa.sa_flags = 0; - memset did it */ if (SIG_DFL) /* if it's constant zero, it's already done */ sa.sa_handler = SIG_DFL; sigaction(SSP_SIGTYPE, &sa, NULL); -- cgit v1.2.3