caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* set custom handler on any signal
@ 2008-09-05  8:44 Denis Smolyar
  2008-09-06  9:51 ` [Caml-list] " Richard Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Denis Smolyar @ 2008-09-05  8:44 UTC (permalink / raw)
  To: caml-list

how i can set my handler on any system signal?
i need catch SIGWINCH.

«Sys.signal» not work for me.

ps. sorry for my terrible english.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] set custom handler on any signal
  2008-09-05  8:44 set custom handler on any signal Denis Smolyar
@ 2008-09-06  9:51 ` Richard Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Jones @ 2008-09-06  9:51 UTC (permalink / raw)
  To: Denis Smolyar; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-06  9:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-05  8:44 set custom handler on any signal Denis Smolyar
2008-09-06  9:51 ` [Caml-list] " Richard Jones

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).