883079a5fc2edb6f85650f3f34fd1eabaed81d25 galt Sun Nov 11 11:48:09 2018 -0800 Fixed typo in error message in https.c. It uses sigwait, not sigtimedwait (which is not available on osx). diff --git src/lib/https.c src/lib/https.c index fdfe924..5709d85 100644 --- src/lib/https.c +++ src/lib/https.c @@ -408,31 +408,31 @@ sigemptyset(&sigpipe_mask); sigaddset(&sigpipe_mask, SIGPIPE); sigset_t saved_mask; if (pthread_sigmask(SIG_BLOCK, &sigpipe_mask, &saved_mask) == -1) { perror("pthread_sigmask"); exit(1); } int bwtx = write(params->sv[1], bbuf+bwt, brd-bwt); int saveErrno = errno; if ((bwtx == -1) && (saveErrno == EPIPE)) { // if there was a EPIPE, accept and consume the SIGPIPE now. int sigErr, sig; if ((sigErr = sigwait(&sigpipe_mask, &sig)) != 0) { errno = sigErr; - perror("sigtimedwait"); + perror("sigwait"); exit(1); } } // restore signal mask on this thread if (pthread_sigmask(SIG_SETMASK, &saved_mask, 0) == -1) { perror("pthread_sigmask"); exit(1); } errno = saveErrno; if (bwtx == -1) { if ((errno != 104) // udcCache often closes causing "Connection reset by peer" && (errno != 32)) // udcCache often closes causing "Broken pipe" xerrno("error writing https data back to user pipe");