guile-devel
[Top][All Lists]
Advanced

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

Re: Idea for safe signal handling by a byte code interpreter


From: Karl M. Hegbloom
Subject: Re: Idea for safe signal handling by a byte code interpreter
Date: 22 Mar 2001 14:31:23 -0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.2 (Thelxepeia (GTK Inside))

>>>>> "Hong" == Hong Zhang <address@hidden> writes:

    >> What if, at the C level, you had a signal handler that sets or
    >> increments a flag or counter, stuffs a struct with information about
    >> the signal's context, then pushes (by "push", I mean "(cons v ls)",
    >> not "(append! ls v)" 'whatever ;-) that struct on a stack...

    Hong> I don't believe there is any way to push anything on the stack inside
    Hong> signal handler without breaking the interpreter. Remember the signal
    Hong> context is not useful outside signal handler.

 I don't mean "the stack", but "a stack"; one created just for this purpose.

 I am a beginner, and likely very naive.

-- 
mailto: (Karl M. Hegbloom) address@hidden
http://www.microsharp.com
phone://USA/WA/360-260-2066



reply via email to

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