Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!emory!gatech!bloom-beacon!ANDREAS.WR.USGS.GOV!gjw From: gjw@ANDREAS.WR.USGS.GOV (Gregory J. Woodhouse) Newsgroups: comp.windows.x Subject: using fork/exec Message-ID: <9012080015.AA07568@andreas.wr.usgs.gov> Date: 8 Dec 90 00:15:10 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 19 Fork, as you all know, returns the pid of the child to the parent process, so it is possible to use kill to send messages back and forth between a process and a child created by a fork/exec. I've done this in non-X programming, but would now like to do the same in an Xlib program. I am aware that it is necessary to do an XCloseDisplay in the child before exec'ing the new process, but then I would like to use XSenEvent to pass messages between processes rather than try an use kill and a signal handler. My question is: How should pass the window ID of the child to the parent. My only idea is to pass the actual bytes of the window ID through a pipe, but am not at all certain that will even work! Surely, someone has done this before. Thanks in advance. Those of you I have corresponded with are helping more than you know. ----------------------------------------------------------------------------- Gregory Woodhouse |We know that the center of the earth gjw@andreas.wr.usgs.gov |is a fiery molten mass...but it's not (415) 329-4694 (office) |good to dwell on it. (415) 325-7802 (home) | U.S. Geological Survey / 345 Middlefield Rd. MS 977 / Menlo Park, CA 94025 -----------------------------------------------------------------------------