stop/start causes hang in Perl script

Felix E. Klee felix.klee at inka.de
Fri Oct 15 21:39:49 UTC 2004


On Fri, 15 Oct 2004 17:25:51 -0400 Jeffrey M.Vinocur wrote:
> > The following piece of code sometimes hangs (forever?):
> >
> > #!/usr/bin/perl
> > print "1\n";
> > $out = `/usr/lib/news/bin/rc.news stop 2>&1`;
> > print "2 $out\n";
> > $out = `/usr/lib/news/bin/rc.news start 2>&1`;
> > print "3 $out\n";
> 
> Well, how far does it get before it hangs?  

Sorry, I forgot that.  Here's a usual output:

1
2 Stopping innd: 

Sometimes it continues after some time, though.  Recently, I got this
output:

1
2 Stopping innd: .
3 Starting innd.
Scheduled start of /usr/lib/news/bin/innwatch.
innwatch: [18146] locked by [17959]

> When it hangs, is the server still running?

The daemon innd is still running.  An example recorded during a hang:

~> ps aux|grep -i innd
news     18195  0.1  1.9  7796 3680 ?        S    23:31   0:00 /usr/lib/news/bin/innd -p 3

Can you reproduce the problem?

Felix


More information about the inn-workers mailing list