From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: stalkern2@tin.it
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Ocamlex/ocamlyacc breakage?
Date: Wed, 09 Apr 2003 09:16:24 +0900 [thread overview]
Message-ID: <20030409091624G.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <200304090120.56363.stalkern2@tin.it>
From: Stalkern 2 <stalkern2@tin.it>
> If I just start a bunch of readers,
> GTK and stdout freeze;
> if I have Unix.fork parents wait for Unix.fork reading children,
> readers show that they can't read everything to the end but stop at random
> points,
> and only GTK drawing areas connected to expose events freeze.
IIRC, you must be careful when using Unix.fork in a gtk program,
because the child thread will attempt to close the X connection on exit,
except if you use exec to start another command.
The natural way to do it is indeed to start independent threads for
readers. Glib.Io.add_watch is another option, if you just intend to
wait for input without blocking computations.
Jacques Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2003-04-09 0:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 11:02 Stalkern 2
2003-04-08 16:08 ` Stalkern 2
2003-04-08 18:02 ` Tim Freeman
2003-04-08 23:20 ` Stalkern 2
2003-04-09 0:16 ` Jacques Garrigue [this message]
2003-04-13 14:33 ` John Max Skaller
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=20030409091624G.garrigue@kurims.kyoto-u.ac.jp \
--to=garrigue@kurims.kyoto-u.ac.jp \
--cc=caml-list@inria.fr \
--cc=stalkern2@tin.it \
/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