From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,77fbcb0bbe1b980b,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 2002-10-07 17:44:02 PST Path: archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!wn11feed!worldnet.att.net!199.45.45.8!cyclone1.gnilink.net!ngpeer.news.aol.com!audrey-m2.news.aol.com!not-for-mail X-Admin: news@aol.com From: williamcin@aol.com (Williamcin) Newsgroups: comp.unix.osf.osf1 Date: 08 Oct 2002 00:28:51 GMT Organization: AOL http://www.aol.com.au Subject: unix process behaviour when terminal windows get killed? Message-ID: <20021007202851.28570.00000238@mb-bh.aol.com> Xref: archiver1.google.com comp.unix.osf.osf1:138 Hi, I wonder if someone could tell exactly what would happen in the following scenario? During the day, we use the terminal emulator (both native MS telnet and TeraTerm) from our PC to connect to our Tru64 Unix 5.1A system and run a character-based in-house application. Everything runs ok until the end of the day when people finished their work and some people just kill the terminal windows by clicking the "X" on the top right hand corner of the window. Most of the time, killing the windows like that will kill the Unix process as well (I have assumed that a 'kill -9' signal is sent over to the Unix and kill that process) but sometimes the Unix process attached to that terminal will go into infinite loop and use 99.9% of the CPU. We have to kill that process manually (takes a look time) to get the system back. Questions: 1. exactly what would happen to the Unix process when someone just kill the terminal windows by clicking the "X" 2. is there a way for software (our in-house application) to detect this kind of situation so that when it happen, it can kill itself? Many thanks for the help or info. Bill