summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-22 13:48:57 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-22 13:48:57 +0200
commit5e8d3975e2cb45df16038e2a99c74abfb252d44a (patch)
treebe6f97027455254e96a68d43321cc5eafe7aca6c
parentc403e32526bc99e886d58a09e11a4f3043af8040 (diff)
sleep: remove commented-out code. no code changes
It can be easily reconstructed, since it's obvious Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r--libc/unistd/sleep.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libc/unistd/sleep.c b/libc/unistd/sleep.c
index d844d5b11..55e646380 100644
--- a/libc/unistd/sleep.c
+++ b/libc/unistd/sleep.c
@@ -74,17 +74,13 @@ unsigned int sleep (unsigned int seconds)
/* Is SIGCHLD set to SIG_IGN? */
sigaction (SIGCHLD, NULL, &oact); /* never fails */
if (oact.sa_handler == SIG_IGN) {
- //int saved_errno;
-
/* Yes, run nanosleep with SIGCHLD blocked. */
result = nanosleep (&ts, &ts);
/* Unblock SIGCHLD by restoring signal mask. */
/* this sigprocmask call never fails, thus never updates errno,
and therefore we don't need to save/restore it. */
- //saved_errno = errno;
sigprocmask (SIG_SETMASK, &set, NULL);
- //__set_errno (saved_errno);
} else {
/* No workaround needed, unblock SIGCHLD by restoring signal mask. */
sigprocmask (SIG_SETMASK, &set, NULL);