From: skaller <skaller@users.sourceforge.net>
To: Markus E L <ls-ocaml-2006@m-e-leypold.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Closing all open file descriptors
Date: Sun, 16 Sep 2007 04:04:01 +1000 [thread overview]
Message-ID: <1189879441.17723.45.camel@rosella.wigram> (raw)
In-Reply-To: <ipbqc49f3d.fsf@hod.lan.m-e-leypold.de>
On Sat, 2007-09-15 at 16:29 +0200, Markus E L wrote:
> GTK and the X11 library without doubt open a plethora of file
> descriptors. If now you fork() in a gtk event handler -- can you tell
> me what happens to those file descriptors?
No, so don't do it. Instead, start a separate process,
and send it a message from the GTK event handler.
Then THAT process does the fork/exec to start the daemon.
If you want to spawn a demon, get another demon to do it
for you:)
I suggest OP examine:
DAEMON.C(1)
and
libslack(3)
[which was written by one of my friends <raf at raf dot org>]
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
next prev parent reply other threads:[~2007-09-15 18:03 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-13 22:56 Dave Benjamin
2007-09-14 1:04 ` [Caml-list] " Erik de Castro Lopo
2007-09-14 6:35 ` Dave Benjamin
2007-09-14 6:48 ` Erik de Castro Lopo
2007-09-14 7:32 ` Dave Benjamin
2007-09-14 6:33 ` David Allsopp
2007-09-14 6:41 ` Dave Benjamin
2007-09-14 10:54 ` Andre Nathan
2007-09-14 10:00 ` Mattias Engdegård
2007-09-14 20:31 ` Dave Benjamin
2007-09-14 21:52 ` Oliver Bandel
2007-09-14 22:12 ` Markus E L
2007-09-15 9:15 ` Oliver Bandel
2007-09-15 9:26 ` Erik de Castro Lopo
2007-09-15 10:43 ` Oliver Bandel
2007-09-15 11:36 ` Mattias Engdegård
2007-09-15 11:57 ` Oliver Bandel
2007-09-15 14:27 ` Markus E L
2007-09-15 12:16 ` Oliver Bandel
2007-09-15 14:29 ` Markus E L
2007-09-15 18:04 ` skaller [this message]
2007-09-15 14:17 ` Markus E L
2007-09-15 14:16 ` Markus E L
2007-09-15 15:58 ` Eric Cooper
2007-09-15 16:17 ` Markus E L
2007-09-15 18:33 ` skaller
2007-09-15 17:44 ` skaller
2007-09-14 10:10 ` Gerd Stolpmann
2007-09-14 11:56 ` Oliver Bandel
2007-09-17 11:00 ` Ville-Pertti Keinonen
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=1189879441.17723.45.camel@rosella.wigram \
--to=skaller@users.sourceforge.net \
--cc=caml-list@inria.fr \
--cc=ls-ocaml-2006@m-e-leypold.de \
/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