Re: X-connection after a fork
- From: Conrad Steenberg <conrad srl caltech edu>
- To: gtk-list gnome org
- Subject: Re: X-connection after a fork
- Date: Mon, 2 Oct 2000 23:27:32 -0700 (PDT)
On Mon, 2 Oct 2000, Wolfgang Sourdeau wrote:
> La plume légère, à Mon, Oct 02, 2000 at 09:22:34PM -0400, heure d'inpiration,
> Havoc Pennington écrivait en ces mots:
> > No way that I can think of.
> >
> > Havoc
>
> After a fork, the file descriptors stay open. So logically the connection
> to /tmp/.X11-unix/X? should be kept (as well as any current variables).
> Why isn't it therefore possible to have the same X client space for two
> parent processes ?
Because the X-server is not reentrant and requires a separate connection
for each thread/process, unless you use the locking stuff in glib (for
threads).
Cheers!
Conrad
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]