Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: patch to ignore SIGPWR and SIGXCPU (used by pthreads)
Date: Sun, 20 Jan 2002 21:51:00 -0000	[thread overview]
Message-ID: <3C4BAC6B.1030908@bothner.com> (raw)
In-Reply-To: <3C4B6560.6010201@cygnus.com>

Andrew Cagney wrote:
> Per, can you please expand a little on the history of this choice of 
> signals?
> 
>      SIGXCPU       terminate process    CPU time limit exceeded (see
>      SIGPWR        discard signal       power failure/restart

I forwarded your message to the java mailing list.  But my assumption
is - what does it matter?  At least when using linux-threads, we do use
these signals.  As I understand it, linux-threads uses kernel support
and does not uses signals.  However, the garbage collector needs to be
able to stop and re-start all threads when doing a collection.  It does
this using signals, at least under linux-threads.  This has nothing to
do with the Solaris user-leel threads implementation, and is a
completely orthoginal issue.

> I don't know that it is right to always silence/ignore these signals 
> when not all systems are using pthreads/libgcj.

Why not?  What does it hurt to (by default) just pass them to the
inferior?  Having gdb stop inconveniences (and confuses) everybody who
uses gcj.  Having gdb silently pass the signals to the application
inconveniences/confuses - who?
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


  reply	other threads:[~2002-01-21  5:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-19 12:33 Per Bothner
2002-01-20 16:48 ` Andrew Cagney
2002-01-20 21:51   ` Per Bothner [this message]
2002-01-20 23:12     ` Andrew Cagney
2002-01-20 23:32       ` Per Bothner
2002-01-21  0:44         ` Andrew Cagney
2002-01-21  9:32       ` Michael Snyder
2002-01-21 10:39         ` Daniel Jacobowitz
2002-01-20 23:39   ` Per Bothner

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=3C4BAC6B.1030908@bothner.com \
    --to=per@bothner.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.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