[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more info about sudo/pflocal/syslogd problem

From: Marcus Brinkmann
Subject: Re: more info about sudo/pflocal/syslogd problem
Date: Sun, 28 Oct 2001 02:37:28 +0100
User-agent: Mutt/1.3.18i

On Sun, Oct 28, 2001 at 02:06:48AM +0100, Marcus Brinkmann wrote:
> So at least two bugs involved here?  It seems so.  Below you can see
> the gdb output of syslogd at the time of sudo hanging.  I should be able
> to narrow it further than that by debugging syslogd in more detail.

It was instructive to step through syslogd.  What happens is that
syslogd listens on a unix and an inet socket with poll.  poll
returns revents 1 for unix and 3 for inet socket (POLLIN and
POLLIN|POLLPRI.  So syslogd will try to get a line from the unix
socket (works) and then from the inet socket, which hangs as there is
no data.

So glibc returns the wrong values in revents for poll.  I am now going to
look into glibc select code.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]