emacs-devel
[Top][All Lists]
Advanced

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

Re: Crashing the new thread code


From: Eli Zaretskii
Subject: Re: Crashing the new thread code
Date: Mon, 12 Dec 2016 19:11:17 +0200

> From: Noam Postavsky <address@hidden>
> Date: Sun, 11 Dec 2016 23:10:48 -0500
> Cc: Juliusz Chroboczek <address@hidden>, Emacs developers <address@hidden>
> 
> On Sun, Dec 11, 2016 at 10:41 PM, Eli Zaretskii <address@hidden> wrote:
> >> From: Noam Postavsky <address@hidden>
> >> Date: Sun, 11 Dec 2016 16:58:49 -0500
> >> Cc: Emacs developers <address@hidden>, Eli Zaretskii <address@hidden>
> >>
> >> >> What did you expect to happen?
> >> >
> >> > The thread queues the condition and continues spinning?
> >>
> >> I would expect the thread to receive the signal as soon as it starts
> >> running again.
> >
> > What would be the indication of the thread receiving the signal?  Both
> > in general and specifically in Juliusz's snippet?
> 
> In general, that any condition-case or unwind-protect forms should
> run. Since Juliusz's snippet had no other signal catching constructs,
> the signaled thread would just exit, I suppose.

OK, this is how the latest master will behave.

The original problem happened because the new thread was trying to
signal itself before the signal handlers were set up, and actually
before the thread function was even running.

Thanks.



reply via email to

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