Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Commit

Permalink
Added #ifdef fix courtesy of Burton (now the code is more readable, b…
Browse files Browse the repository at this point in the history
…ut no

functionality has been changed/modified)
  • Loading branch information
deri committed Oct 14, 2002
1 parent 90c30d6 commit 0a31d00
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webInterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -3389,8 +3389,10 @@ void printNtopConfigInfo(int textPrintFlag) {
if (rc != 0)
traceEvent(TRACE_ERROR, "Error, SIGPIPE handler set, sigaddset() = %d, gave %p\n", rc, nset);

#if !defined(DEBUG) && !defined(DARWIN)
#ifndef DARWIN
rc = pthread_sigmask(SIG_UNBLOCK, NULL, oset);
#endif
#ifdef DEBUG
traceEvent(TRACE_ERROR, "DEBUG: Note: SIGPIPE handler set (was), pthread_setsigmask(-, NULL, %x) returned %d\n", oset, rc);
#endif

Expand All @@ -3400,8 +3402,10 @@ void printNtopConfigInfo(int textPrintFlag) {
traceEvent(TRACE_ERROR, "Error, SIGPIPE handler set, pthread_setsigmask(SIG_UNBLOCK, %x, %x) returned %d\n", nset, oset, rc);
#endif

#if !defined(DEBUG) && !defined(DARWIN)
#ifndef DARWIN
rc = pthread_sigmask(SIG_UNBLOCK, NULL, oset);
#endif
#ifdef DEBUG
traceEvent(TRACE_INFO, "DEBUG: Note, SIGPIPE handler set (is), pthread_setsigmask(-, NULL, %x) returned %d\n", oset, rc);
#endif

Expand Down

0 comments on commit 0a31d00

Please sign in to comment.