Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2008-09-06 (09:52)
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:


Richard Jones
Red Hat