summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 20:29:52 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-01 20:29:52 +0000
commitfbb32ad9b6a4b6cffea1c5b4292b18c72cdadaf6 (patch)
tree0e3c04e3e9141adb9f9d47329c6ff46d6e5a5335 /libc
parent513720b73b403c3c9aca3f25c085422f4132c292 (diff)
on Bernd's request, remove commented-out code snippets
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/syslog/syslog.c4
-rw-r--r--libc/pwd_grp/lckpwdf.c1
-rw-r--r--libc/signal/sigignore.c2
-rw-r--r--libc/signal/sigset.c2
-rw-r--r--libc/stdlib/abort.c1
-rw-r--r--libc/sysdeps/linux/common/ssp.c1
6 files changed, 0 insertions, 11 deletions
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);