🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Jimbo Tue, 06 Jan 1998 00:00
Q: connectd causing zombies on Solaris 2.5.1
#24928
Author: Jimbo
Date: Tue, 06 Jan 1998 00:00
15 lines
955 bytes
I got connectd (from Joe Greco) compiled up and running on a Solaris 2.5.1
box and it is _quick_. Thanx a lot Joe. After a couple of days of running
it I noticed that it had casued ~400 zombies of nnrpd :(

I looked at the code and saw a wait3() to catch the process children so
am at a loss now where I should look. Has anyone seen this problem and if
so do they have a fix ?

Thanx

Jimbo


Re: Q: connectd causing zombies on Solaris 2.5.1
#24924
Author: Chris Adams
Date: Tue, 06 Jan 1998 00:00
20 lines
1394 bytes
According to Jimbo  <jimbo@soco.de>:
>I got connectd (from Joe Greco) compiled up and running on a Solaris 2.5.1
>box and it is _quick_. Thanx a lot Joe. After a couple of days of running
>it I noticed that it had casued ~400 zombies of nnrpd :(
>
>I looked at the code and saw a wait3() to catch the process children so
>am at a loss now where I should look. Has anyone seen this problem and if
>so do they have a fix ?

I had to modify it under Linux to use "sigaction" instead of "signal" to
install the signal handler, because, under Linux, "signal" uses old BSD
style unreliable signals that have to be reinstalled with each signal
action.  That fixed the zombies for me.
-- 
Chris Adams - cadams@ro.com
System Administrator - Renaissance Internet Services
I don't speak for anybody but myself - that's enough trouble.

Re: Q: connectd causing zombies on Solaris 2.5.1
#24930
Author: Joe Greco
Date: Tue, 06 Jan 1998 00:00
19 lines
1482 bytes
In news.software.nntp article <68tagg$6pk$1@news2.soco.de>, Jimbo <jimbo@soco.de> wrote:
:I got connectd (from Joe Greco) compiled up and running on a Solaris 2.5.1
:box and it is _quick_. Thanx a lot Joe. After a couple of days of running
:it I noticed that it had casued ~400 zombies of nnrpd :(
:
:I looked at the code and saw a wait3() to catch the process children so
:am at a loss now where I should look. Has anyone seen this problem and if
:so do they have a fix ?

I don't remember the exact code...  I think it uses WNOHANG, so one thing
you might try (if you don't want to muck around with UNIX process forking
code) is simply to duplicate the wait3() call a second time.

Definitely wrong and icky, but it may solve the problem.

... JG

Re: Q: connectd causing zombies on Solaris 2.5.1
#24936
Author: Per Hedeland
Date: Tue, 06 Jan 1998 00:00
20 lines
1421 bytes
In article <68tsuu$g0t$1@news.ro.com> cadams@ro.com (Chris Adams) writes:
>According to Jimbo  <jimbo@soco.de>:
>>I looked at the code and saw a wait3() to catch the process children so
>>am at a loss now where I should look. Has anyone seen this problem and if
>>so do they have a fix ?
>
>I had to modify it under Linux to use "sigaction" instead of "signal" to
>install the signal handler, because, under Linux, "signal" uses old BSD
>style unreliable signals that have to be reinstalled with each signal
>action.  That fixed the zombies for me.

Uh, that should be "SysV style" (or perhaps "v7":-) - BSD fixed signal()
15 years ago. But certainly sigaction() (and waitpid()) is the thing to
use these days, being POSIX *and* usable.

--Per Hedeland
per@erix.ericsson.se

Re: Q: connectd causing zombies on Solaris 2.5.1
#24946
Author: Miquel van Smoorenburg
Date: Wed, 07 Jan 1998 00:00
23 lines
1640 bytes
In article <68u8ku$lgv$1@news.du.etx.ericsson.se>,
Per Hedeland <per@erix.ericsson.se> wrote:
>In article <68tsuu$g0t$1@news.ro.com> cadams@ro.com (Chris Adams) writes:
>>According to Jimbo  <jimbo@soco.de>:
>>I had to modify it under Linux to use "sigaction" instead of "signal" to
>>install the signal handler, because, under Linux, "signal" uses old BSD
>>style unreliable signals that have to be reinstalled with each signal
>>action.  That fixed the zombies for me.
>
>Uh, that should be "SysV style" (or perhaps "v7":-) - BSD fixed signal()
>15 years ago. But certainly sigaction() (and waitpid()) is the thing to
>use these days, being POSIX *and* usable.

Note also that glibc changed the Linux default (sigh) and that signal()
in glibc aka lib6 now behaves the BSD way.

Mike.
-- 
 Miquel van Smoorenburg |  The dyslexic, agnostic, insomniac lay in his bed
    miquels@cistron.nl  |  awake all night wondering if there is a doG

Re: Q: connectd causing zombies on Solaris 2.5.1
#24951
Author: Chris Adams
Date: Wed, 07 Jan 1998 00:00
30 lines
2052 bytes
According to Per Hedeland <per@erix.ericsson.se>:
>In article <68tsuu$g0t$1@news.ro.com> cadams@ro.com (Chris Adams) writes:
>>I had to modify it under Linux to use "sigaction" instead of "signal" to
>>install the signal handler, because, under Linux, "signal" uses old BSD
>>style unreliable signals that have to be reinstalled with each signal
>>action.  That fixed the zombies for me.
>
>Uh, that should be "SysV style" (or perhaps "v7":-) - BSD fixed signal()
>15 years ago. But certainly sigaction() (and waitpid()) is the thing to
>use these days, being POSIX *and* usable.

Yeah, I got that backwards.  Sorry about that.

Someone emailed me asking for my patch for this.  I tried to email them
back, but the mail bounced (and I didn't save the original message to
inspect for a better address).  I can't find my changes right now.
However, I do know this: I did the minimum possible, reading the
sigaction man page an Stevens' "Advanced Programming in the UNIX
Environment" to get connectd converted.  My patches also did some other
stuff (bind only to a given address, include the daemon function, and
another thing or I can't remember now).  It is on my news server
somewhere; I just can't put my hands on it right now (and haven't had
time to dig).
-- 
Chris Adams - cadams@ro.com
System Administrator - Renaissance Internet Services
I don't speak for anybody but myself - that's enough trouble.

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