[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: |
Chris Lightfoot |
Subject: |
Re: [tpop3d-discuss] [patch] Bug in the current CVS |
Date: |
Tue, 12 Aug 2003 20:50:20 +0100 |
User-agent: |
Mutt/1.3.24i |
On Tue, Aug 12, 2003 at 08:48:01PM +0100, Paul Makepeace wrote:
> 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?
ach, forgot to commit it ;)
now done.
--
``I was not lying. I said things that later on seemed to be untrue.''
(Richard Nixon, on Watergate, 1978)