Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
To: Louis Gesbert <louis.gesbert@ocamlpro.com>
Cc: caml-list@inria.fr, Romain Bardou <romain.bardou@inria.fr>,
	Arnaud Spiwack <aspiwack@lix.polytechnique.fr>
Subject: Re: [Caml-list] [ANN] Procord 0.1.0: Delegate tasks to other processes
Date: Thu, 10 Oct 2013 17:59:09 +0200	[thread overview]
Message-ID: <B5304A4A-AD46-4972-A245-75134FEA6494@math.nagoya-u.ac.jp> (raw)
In-Reply-To: <17063385.vVJpguqPzc@ocp-dell>

On 2013/10/10, at 16:59, Louis Gesbert <louis.gesbert@ocamlpro.com> wrote:

> You may find the bindings for Terminate_process in ocaml-top useful [1].
> 
> I also had to handle sending a SIGINT to the ocaml toplevel, which wasn't very fun,
> 
> 
> [1] https://github.com/OCamlPro/ocaml-top/blob/master/src/sigint_win.c
> 
> Louis Gesbert -- OCamlPro

If you're just trying to kill an ocaml toplevel that you have spawned yourself,
you can have a look at labltk/browser/shell.ml.
By setting the environment variable OCAMLSIGPIPE and sending T or C to
this pipe you can kill or interrupt the ocaml toplevel asynchronously.
(At the time I implemented that, there was basically no other way to do that
in windows than having a child thread kill its parent.

	Jacques

      reply	other threads:[~2013-10-10 15:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-09  9:09 Romain Bardou
2013-10-10 12:06 ` Arnaud Spiwack
2013-10-10 12:24   ` Romain Bardou
2013-10-10 14:59     ` Louis Gesbert
2013-10-10 15:59       ` Jacques Garrigue [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=B5304A4A-AD46-4972-A245-75134FEA6494@math.nagoya-u.ac.jp \
    --to=garrigue@math.nagoya-u.ac.jp \
    --cc=aspiwack@lix.polytechnique.fr \
    --cc=caml-list@inria.fr \
    --cc=louis.gesbert@ocamlpro.com \
    --cc=romain.bardou@inria.fr \
    /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