guile-devel
[Top][All Lists]
Advanced

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

Re: [RFC] Block all async signals used by gdb when initializing Guile


From: Mark Kettenis
Subject: Re: [RFC] Block all async signals used by gdb when initializing Guile
Date: Sat, 29 Aug 2015 23:04:02 +0200 (CEST)

> Date: Sat, 29 Aug 2015 13:39:55 -0700
> From: Doug Evans <address@hidden>
> 
> On Sat, Aug 29, 2015 at 1:16 PM, Eli Zaretskii <address@hidden> wrote:
> >> Date: Sat, 29 Aug 2015 12:20:24 -0700
> >> From: Doug Evans <address@hidden>
> >> Cc: "address@hidden" <address@hidden>, guile-devel <address@hidden>
> >>
> >> > 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.

I suppose blocking these in the threads that guile starts is necessary
because that is the only way to guarantee that those signals will be
delivered to the main gdb thread on POSIX systems.

On Windows you probably need to do something completely different.



reply via email to

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