🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #31152

INN 2.1 on Solaris 2.5.1: innfeed doesn't collect children

#31152
From: Joe Ramey
Date: Wed, 02 Sep 1998 00:00
36 lines
2183 bytes
I'v figured out a bit more regarding this problem where innfeed on
Solaris 2.5.1 ends up with lots of zombied children.

For some reason, it seems that syslog() ends up doing a fork() on
Solaris 2.5.1.  I haven't figured out yet whether it does this all the
time or just in particular cases.

Also, innfeed is setting up a signal handler for SIGCHLD, but this
handler doesn't wait for children.  It does something else entirely -
it flushes all the backlog files.  This also explains why, if you are
getting these zombie processes with your innfeed, you are also seeing
lots of messages about `flushing tapes' in your news.notice file.

Now somehow, because of this SIGCHLD handler I think, the syslog()
function is sometimes able to collect its children but not all of the
time.  So, we get these zombie processes adding up.

One fix is to change the current innfeed SIGCHLD handler so that it,
in addition to flushing tapes, also collects any outstanding children.
That's not hard to do.  But, do we really want to be flushing the
backlog files all the time like this?

Another fix would be to move the `backlog flush' feature to another
signal.  Is there any particular reason why this was on SIGCHLD, or
was that just an otherwise unused signal?

I'd really like to know why syslog is forking off all the time, but I
haven't figured that part out yet.

In the meantime, I've just commented out the SIGCHLD signal handler in
my innfeed.  I wasn't using that feature anyway.

Joe


Technical Details
Message-ID: <x6soia1594.fsf@csc.ti.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.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <x6soia1594.fsf@csc.ti.com>
Subject: INN 2.1 on Solaris 2.5.1: innfeed doesn't collect children
Date: Wed, 02 Sep 1998 00:00:00 +0000
From: Joe Ramey <ramey@csc.ti.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.mbox.zip!not-for-mail
X-Deja-AN: 387301208
X-Complaints-To: abuse@ti.com
X-Trace: superb.csc.ti.com 904777756 7896 192.91.61.26 (2 Sep 1998 23:09:16 GMT)
Organization: Texas Instruments
NNTP-Posting-Date: 2 Sep 1998 23:09:16 GMT
Newsgroups: news.software.nntp