[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tpop3d-discuss] [patch] Bug in the current CVS
From: |
Paul Makepeace |
Subject: |
Re: [tpop3d-discuss] [patch] Bug in the current CVS |
Date: |
Tue, 12 Aug 2003 20:48:01 +0100 |
User-agent: |
Mutt/1.5.4i |
On Sun, Aug 03, 2003 at 10:22:17PM +0100, Jonathan wrote:
> In the xsignal function (util.c line 114) there's a call to
> sigemptyset(&sa.sa_flags); Sigemptyset promptly dies horribly. I assume that
> was meant to be sa_mask and I've attached a diff to fix it.
>
> --
> Jonathan Oddy
> Woaf Tech Ltd.
> --- util.c 18 Jul 2003 08:26:00 -0000 1.22
> +++ util.c 3 Aug 2003 21:11:40 -0000
> @@ -113,7 +113,7 @@
> * Set a signal with a similar interface to signal(2) using sigaction(2). */
> void (*xsignal(int signum, void(*handler)(int)))(int) {
> struct sigaction sa = {0}, sa_old;
> - sigemptyset(&sa.sa_flags);
> + sigemptyset(&sa.sa_mask);
> sa.sa_handler = handler;
> sa.sa_flags = SA_RESTART;
> if (sigaction(signum, &sa, &sa_old) == -1)
Chris, can you please apply this?
Thanx!
Paul (who also came up with this patch :-)
--
Paul Makepeace ....................................... http://paulm.com/
"If elephants didn't fart, then surely the Captain will work it out."
-- http://paulm.com/toys/surrealism/