Re: SOlaris 2.6, squid 1.1.21 poll() ERESTART errors

From: Rich Ashton <rich@dont-contact.us>
Date: Wed, 15 Apr 1998 15:21:31 +0100 (BST)

Hmm.
        OK - patch appears not to work, however I may be starting squid wrong
(after all these years!)
        If I start squid from a TTY eg: squid &, then any other process in
that group, the poll gets sent to squid and it still doesn't handle it
correctly.
        Can anyone tell me why squid doesn't disassociate itself from the
process group?
        Also, the squid FAQ lists several ways to start squid - which one
should be used with this problem, since I can find no docs on the -sYC
startup options?

Rich.

> Rich Ashton writes:
>
> >Peeps,
> > Using Solaris 2.6 with the latest recommended SUN patch set, squid
> >1.1.21 has a problem when using the poll() system command, as opposed to the
> >select() system call.
> >
> > In comm.c, line 852, the poll() returns ERESTART when you do the do
> >a 'tail -f <any squid log file>' and interrupt it using CTRL C on the same
> >machine. It also happens if you run snoop, or ipmon or any such scanner.
> >
> > Doing a truss of the process shows the ERESTART error which causes
> >squid to shut itself down and stop.
> >
> > Has anyone else experienced this? Do you have a workaround before I
> >write one? There are poll() bug fixes in innd and other publically
> >available software since SUN have had numerous problems and I was going to
> >adapt one of the fixes used and apply it to squid.
>
> try this patch
>
> Index: comm.c
> ===================================================================
> RCS file: /surf1/CVS/squid/src/comm.c,v
> retrieving revision 1.138.2.25
> diff -w -u -r1.138.2.25 comm.c
> --- comm.c 1998/03/17 00:49:07 1.138.2.25
> +++ comm.c 1998/04/08 17:12:00
> @@ -856,6 +856,8 @@
> break;
> if (errno == EINTR)
> break;
> + if (errno == ERESTART)
> + break;
> debug(5, 0, "comm_select: poll failure: %s\n",
> xstrerror());
> if (errno == EINVAL) {
>
> Duane W.
>

-- 
..Blue         O            "Smoke me a kipper,
  Skies..    //\/            I'll be back for breakfast."
            \/\  ..Must
         ...../    Dash..    Email: rich@ops.netcom.net.uk
Received on Wed Apr 15 1998 - 07:25:22 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:42 MST