2011-08-11 Giuseppe Scrivano <gscrivano@gnu.org>
+ * bootstrap.conf (gnulib_modules): Add `sigprocmask'.
+
* configure.ac: Do not hardcode GNU TLS and OpenSSL libraries.
* bootstrap.conf (gnulib_modules): Include module iconv.
2011-08-11 Giuseppe Scrivano <gscrivano@gnu.org>
+ * utils.c (abort_run_with_timeout): Use sigprocmask instead of
+ sigsetmask.
+
* gnutls.c (ssl_connect_wget): Remove call to deprecated function
`gnutls_certificate_type_set_priority'.
/* We don't have siglongjmp to preserve the set of blocked signals;
if we longjumped out of the handler at this point, SIGALRM would
remain blocked. We must unblock it manually. */
- int mask = siggetmask ();
- mask &= ~sigmask (SIGALRM);
- sigsetmask (mask);
+ sigset_t set;
+ sigemptyset (&set);
+ sigaddset (&set, SIGALRM);
+ sigprocmask (SIG_BLOCK, &set, NULL);
/* Now it's safe to longjump. */
longjmp (run_with_timeout_env, -1);