English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: http://groups.yahoo.com/group/ocaml_beginners


Richard Jones
Red Hat