unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: Signal thread
Date: Mon, 27 Jun 2011 22:44:53 +0200	[thread overview]
Message-ID: <87pqlzt35m.fsf@pobox.com> (raw)
In-Reply-To: <87boxjuuwh.fsf@gnu.org> ("Ludovic Courtès"'s message of "Mon, 27 Jun 2011 18:00:14 +0200")

Hello guild-comrade Courtès!

On Mon 27 Jun 2011 18:00, ludo@gnu.org (Ludovic Courtès) writes:

> "Andy Wingo" <wingo@pobox.com> skribis:
>
>> commit 3b971a59b55586a236c3621a55515d9272ee5c80
>> Author: Andy Wingo <wingo@pobox.com>
>> Date:   Thu Jun 23 11:24:16 2011 +0200
>>
>>     don't spawn the signal delivery thread in a thread-exit handler
>>     
>>     * libguile/threads.c (do_thread_exit): Remove needless spawn of the
>>       signal delivery thread.
>
> Out of curiosity, what’s the rationale?  Should it be done in stable-2.0
> as well?

Out of curiosity, I looked :)  The commit that added the spawning code
was 2e77f7202b11ad0003831fcff94ec7db80cca015 from you, which
unfortunately has no log.  Actually, let's take this opportunity to have
a moment of silence for Arch.





Ah.  I remember those days and am quite happy to live in the age of git
:-)

Anyway, spawning a thread just to shut it down didn't make any sense to
me.  I looked and looked and couldn't justify it.  It seems that the
only case that might matter, closing the signal pipe, worked just fine
whether the thread had been spawned or not.  So I removed that code.

Should it apply to 2.0?  Perhaps, but I didn't want it to block 2.0.2.

> As a side note, why does this area have to change so often?  :-)

I understand the frustration :)  Threads are hard, signals are hard, GC
and threads and signals is hard.  But I do hope it's getting better.

Cheers,

Andy
-- 
http://wingolog.org/



  reply	other threads:[~2011-06-27 20:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1QZiQ3-0008H5-HJ@vcs-noshell.in.savannah.gnu.org>
2011-06-27 16:00 ` Signal thread Ludovic Courtès
2011-06-27 20:44   ` Andy Wingo [this message]
2011-06-28 16:46     ` Ludovic Courtès
2011-06-28 19:52       ` Andy Wingo
2011-06-29 15:51         ` Ludovic Courtès

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=87pqlzt35m.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@gnu.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).