dsouza@astroatc.UUCP (Lew Dsouza) (06/05/88)
I am having trouble exiting a session with X that was started using xinit or init. When the server goes away it takes everyone else down with it. Case 1: I can start X manually (login to the graphics terminal, type "X 0 0", go to another terminal and start up an xterm, start up uwm from that xterm, use the menus in uwm to create more xterms etc.) After my session I can safely exit from the xterms the last of which causes the server to go away and a getty to be spawned on that line only. Case 2: I use xinit to start up the server and a client (xterm), do the same thing as in Case 1 but when exiting the last xterm (the one started by xinit) bizzare things start to happen. The system locks up for a while, and then gettys are spawned on all the terminal lines. All deamons are mysteriously killed. The same thing happens if I start X from "init" (since we have a 4.2 BSD system, I had to port the 4.3 getty, login and init, use the 4.3 /etc/ttys format to get X fired up from "init"). My questions are: 1. Who or what is killing off all the other processes? Is it xinit, xterm, the server, the C-shell, the pty or tty driver? 2. Why does this happen in Case 2 only? 3. Is ther a fix to this problem? We are running X V10.4 on a 4.2 BSD UNIX system. Has anyone encountered this behavior before? Any suggestions or clues as to what is going on will be greatly appreciated. As far as I can figure it out, xinit or xterm send out a signal (SIGHUP or SIGTERM) to all proccesses in its group. Somehow the "init" process also happens to be in the same process group. Upon receiving the SIGHUP, init spawns gettys on every line essentially bumping every one else off the system. The deamons cron, update and lpd et al are killed. I have been wrestling with this problem for several days now. If you could shed some light on this please respond. HELP! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lew Dsouza uwvax!astroatc!dsouza Astronautics Technology Center (608) 221-9001 Ext. 251 Madison, WI 53716 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lew Dsouza uwvax!astroatc!dsouza Astronautics Technology Center (608) 221-9001 Ext. 251