mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joel Becker <Joel.Becker@oracle.com>
To: Melkor Ainur <melkorainur@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: signal_pending() and schedule()
Date: Tue, 26 Mar 2002 17:49:32 -0800	[thread overview]
Message-ID: <20020327014932.GB803@insight.us.oracle.com> (raw)
In-Reply-To: <20020327001955.99099.qmail@web21203.mail.yahoo.com>

On Tue, Mar 26, 2002 at 04:19:55PM -0800, Melkor Ainur wrote:
> This works fine for some applications like netcat,etc
> but fails for netscape. In debugging this, I observe
> that after calling schedule_timeout(), the sigpending
> bit appears to be set immediately and thus 
> schedule() doesn't actually put the process to sleep.

	This is happening exactly for the reason you would expect it to:
A signal has arrived.  Netscape's userspace "threading" is based
entirely on signals.  Netscape sends itself SIGALRM almost continuously.
You'll have to expect this from Netscape and work around or with it.

Joel

-- 

Life's Little Instruction Book #337

	"Reread your favorite book."

Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127

  parent reply	other threads:[~2002-03-27  1:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-27  0:19 Melkor Ainur
2002-03-27  0:53 ` Alan Cox
2002-03-27  1:49 ` Joel Becker [this message]
2002-03-27  3:52   ` Melkor Ainur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020327014932.GB803@insight.us.oracle.com \
    --to=joel.becker@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=melkorainur@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®