From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Evans Newsgroups: gmane.lisp.guile.devel,gmane.comp.gdb.patches Subject: Re: [RFC] Block all async signals used by gdb when initializing Guile Date: Sat, 29 Aug 2015 13:39:55 -0700 Message-ID: References: <831tel3o68.fsf@gnu.org> <83wpwd26lt.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1440880806 13634 80.91.229.3 (29 Aug 2015 20:40:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2015 20:40:06 +0000 (UTC) Cc: guile-devel , "gdb-patches@sourceware.org" To: Eli Zaretskii Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Aug 29 22:40:00 2015 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZVmuu-0005tt-CW for guile-devel@m.gmane.org; Sat, 29 Aug 2015 22:40:00 +0200 Original-Received: from localhost ([::1]:54548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVmut-0003pD-OR for guile-devel@m.gmane.org; Sat, 29 Aug 2015 16:39:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVmuq-0003oz-Mx for guile-devel@gnu.org; Sat, 29 Aug 2015 16:39:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVmup-0007nF-Qr for guile-devel@gnu.org; Sat, 29 Aug 2015 16:39:56 -0400 Original-Received: from mail-yk0-x22e.google.com ([2607:f8b0:4002:c07::22e]:34338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVmup-0007nB-M8; Sat, 29 Aug 2015 16:39:55 -0400 Original-Received: by yky130 with SMTP id 130so1489801yky.1; Sat, 29 Aug 2015 13:39:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OvmggJyPHX/xYuxl8gqcSaxc7GK2ToMG3Q6vs5K918M=; b=VTfNlwHVDB0ZaJ7Trhe4hxgOIPl5PAYUTQTSF6hFer8BLFWYRYjdmKmx/AiKnNyh0C WOLBEtqf6bShea0zSr5KBS5BSDAG0uu489vhYpNKKh2RA3tA5s8dN4/0RdNfRGrNfoAu 5wcJ4DGRfTbM1uV0Kgi7OJjdvpXXUuPd914c3nAXldEvDpjeYNLtjE/Z4MCWCcHt2Tf1 tPv0zVsrfqi5sVMxbEhEPqaD4Guz4ItesGKtZ6Zf8KFD7DkmPfDJ+wtQjrOmZpkn+SiQ UNroMn5LrzdKsLA3C7RnQPVJrS+apd12EQtT+CHV8O0n8wuhryixiNJnMfpYo3ZCKPGy Pw5Q== X-Received: by 10.129.71.69 with SMTP id u66mr14819931ywa.49.1440880795250; Sat, 29 Aug 2015 13:39:55 -0700 (PDT) Original-Received: by 10.13.254.195 with HTTP; Sat, 29 Aug 2015 13:39:55 -0700 (PDT) In-Reply-To: <83wpwd26lt.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c07::22e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17799 gmane.comp.gdb.patches:110702 Archived-At: On Sat, Aug 29, 2015 at 1:16 PM, Eli Zaretskii wrote: >> Date: Sat, 29 Aug 2015 12:20:24 -0700 >> From: Doug Evans >> Cc: "gdb-patches@sourceware.org" , guile-devel >> >> > What about platforms that don't have sigprocmask, but do have SIGINT? >> > Don't we want to block SIGINT on those platforms? >> >> Do they have threads > > They might. (The only way I've succeeded to have a working Guile on > Windows was to disable threads, but I hope that bug will be fixed one > day.) > >> and how does one block SIGINT on those platforms? > > With a call to 'signal', I guess. I'm guessing that won't work here, we'll need something else. The issue is we need the threads that guile starts to have these signals blocked. Then after guile init returns we unblock the signals.