🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Joe Ramey Wed, 02 Sep 1998 00:00
INN 2.1 on Solaris 2.5.1: innfeed doesn't collect children
#31152
Author: 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


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads