caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Denis Smolyar <rastafarra@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] set custom handler on any signal
Date: Sat, 6 Sep 2008 10:51:57 +0100	[thread overview]
Message-ID: <20080906095157.GA13011@annexia.org> (raw)
In-Reply-To: <902f6c460809050144y430ad7f7m6e3da4480e0e3c94@mail.gmail.com>

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


      reply	other threads:[~2008-09-06  9:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05  8:44 Denis Smolyar
2008-09-06  9:51 ` Richard Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080906095157.GA13011@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=rastafarra@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).