Version française
Home     About     Download     Resources     Contact us    
Browse thread
set custom handler on any signal
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] set custom handler on any signal
On Fri, Sep 05, 2008 at 02:44:56PM +0600, Denis Smolyar wrote:
> how i can set my handler on any system signal?
> i need catch SIGWINCH.
> 
> «Sys.signal» not work for me.

If you know the signal number (eg. from your system's header files)
you use that instead.  To make it nice and portable, use something
like autoconf.

By the way, for beginners questions there is a list:

> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

Rich.

-- 
Richard Jones
Red Hat