Rhythmic Fistman wrote:
>> From: skaller <[EMAIL PROTECTED]>
>>
>> On Wed, 2006-11-08 at 09:57 -0800, Erick Tryzelaar wrote:
>>
>>     
>>> signals are quite tricky to deal with when you got garbage collection :)
>>> I found a mailing about how ocaml does it:
>>>       
>
>
> [...]
>
>   
>> The data buffer will be finite of course .. if you get
>> too many signals too fast you're screwed. This is one
>> case where you probably HAVE to use global storage
>> (absolute addressing) .. since the signal has no
>> other context.
>>     
>
> You can use sigwait to serialise/queue [some] incoming signals into
> a nice waitable form, but to make it work reliably you need to set
> the signal masks before any threads are spawned, i.e. before the felix
> driver gets started. Yet another @#%#$@ API that just HAS to be run first.
>
> Signals are shit, Jonathan, and in the presence of multiple threads they're
> even shitter - what exactly are you trying to do?
>
>   

I'm trying to wrap ncurses and want to deal with SIGWINCH, and I'd want 
to handle SIGINT too of course, to tidy up.

Jonathan.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to