Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!hubcap!ncrcae!secola!tduncan From: tduncan@secola.Columbia.NCR.COM (Terry S. Duncan) Newsgroups: comp.windows.x.motif Subject: Child processes keep window alive after X program terminates Keywords: system Message-ID: <107@secola.Columbia.NCR.COM> Date: 6 Feb 91 21:45:34 GMT Reply-To: tduncan@secola.Columbia.NCR.COM (Terry S. Duncan) Organization: NCR NPD Columbia Lines: 16 I am writing a motif application which manages a unix software package. Among other things my motif application spawns off other unix processes (daemons) which will continue to run after the motif program is terminated. I am using system(2) to spawn of the child processes. The problem I am having is that after I start one of these daemons my motif window does not go away unless all children are terminated. In other words, the unix process terminates but the window hangs arround. When I do a `ps -ef` I see the child processes all with parent process ID of 1 and no shell or any- thing to be keeping the window up. Is this a bug in motif, X, or mwm? If not, what do I need to do to make the window dissapear? I have tried ignoring and releasing the SIGCLD signal, but, there was no difference. I have also tried using fork(2) and exec(2) but that made no difference either. - Terry