Xref: utzoo comp.unix.questions:22786 comp.windows.x:22984 Path: utzoo!attcan!uunet!kddlab!titcca!dclsic!sjc!spider!leia!harkcom From: harkcom@potato.pa.Yokogawa.CO.JP (Alton Harkcom) Newsgroups: comp.unix.questions,comp.windows.x Subject: XCloseDisplay Message-ID: Date: 8 Jun 90 23:21:12 GMT Sender: news@leia.pa.yokogawa.co.jp Followup-To: comp.unix.questions Distribution: comp Organization: Yokogawa Electric Corporation, Tokyo, Japan. Lines: 22 Help!!! I am trying to open a window on another display, close it, and open it again. I use fork() to do this because I want to include a copy of the process that sent the message. If I keep the message and kill the parent process, the original dies but leaves it window resource until I kill the child. To get the parent to die cleanly, I included an XCloseDisplay() in the if (pid == 0) {} routine. This gives me errors when I try to exit the parent process. It also limits me to one child process. I tried to set the closedownmode to RetainTemporary and then KillClient when I exit the process, but this doesn't work. The window resource remains. How do I free the resource connection between the parent and child without freeing the resources? email to: harkcom@pa.yokogawa.co.jp -- --harkcom@potato.pa.yokogawa.co.jp