[Top][All Lists]

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

Re: HTTP downloads and select()

From: Marcus Brinkmann
Subject: Re: HTTP downloads and select()
Date: Tue, 26 Jun 2001 13:15:17 +0200
User-agent: Mutt/1.3.18i

On Tue, Jun 26, 2001 at 04:16:54AM -0400, Roland McGrath wrote:
> Unless the program is using sigaction without SA_RESTART for its signal
> handlers, select should not return EINTR (it should restart).  So the
> things to figure out are: what all kinds of signal handling is it using,
> and what signals might be generated that you would expect.

It doesn't do a lot at all.  It sets SIGPIPE tp SIG_IGN, and SIGWINCH to a
signal handler.  At least on Linux, this happens with SA_RESTART set by
default (but I don't know if we do it by default, too).

However, we don't resize the terminal anyway, so this signal should not be
raised, right?

The only other signal related thing it does is, while updating the process
bar, it blocks SIGWINCH temporarily with sigprocmask.  Can it be that this
block/unblock can confuse select?

Do we have SA_RESTART by default?

Can I see which signal interrupted select()?  Where would I set my



`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org

reply via email to

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