Article View: news.software.nntp
Article #78515Re: innd crashing
From: Julien ÉLIE
Date: Sat, 19 Jan 2008 15:39
Date: Sat, 19 Jan 2008 15:39
40 lines
2299 bytes
2299 bytes
In innd.c, I see:
/* Signal handling. If we receive a signal that should kill the server,
killer_signal is set to the signal number that we received. This isn't
what indicates that we should terminate; that's the separate global
variable GotTerminate, used in CHANreadloop. */
static volatile sig_atomic_t killer_signal = 0;
/*
** Signal handler to catch SIGTERM and similar signals and queue a clean
** shutdown.
*/
static RETSIGTYPE
catch_terminate(int sig)
{
GotTerminate = true;
killer_signal = sig;
#ifndef HAVE_SIGACTION
xsignal(signal, catch_terminate);
#endif
}
Shouldn't sig also be a sig_atomic_t (that is to say a long on 64-bit
architectures)?
But I doubt it solves Steve's problem.
(And where is "signal" defined in the !HAVE_SIGACTION section?)
--
Julien ÉLIE
« -- Ils s'arrêtaient tous les jours à 5 heures,
pour boire de l'eau chaude...
-- Je prendrai un nuage de lait, je vous prie. » (Astérix)
Technical Details
Message-ID:
<fmt5jm$mv0$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mailReferences:
<fmslth$im5$1@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <fmt5jm$mv0$1@news.trigofacile.com> Subject: Re: innd crashing Date: Sat, 19 Jan 2008 16:39:25 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <fmslth$im5$1@news.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 40 NNTP-Posting-Host: goret.via.ecp.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1200757175 23520 138.195.145.8 (19 Jan 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sat, 19 Jan 2008 15:39:35 +0000 (UTC) In-Reply-To: <fmslth$im5$1@news.mixmin.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.20661 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545