From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,85504b55b7c06340 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-12-11 15:01:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!fu-berlin.de!uni-berlin.de!stingray.cincom.COM!not-for-mail From: "BillLi" Newsgroups: comp.unix.tru64 Subject: Re: Why tty ID is set to ?? for an interactive process? Date: Thu, 12 Dec 2002 10:01:17 +1100 Message-ID: References: <20021209234749.16577.00000185@mb-co.aol.com> <3DF6EF4F.5000605@ev.co.yu> NNTP-Posting-Host: stingray.cincom.com (198.8.67.3) X-Trace: fu-berlin.de 1039647692 35518701 198.8.67.3 (16 [174003]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.unix.tru64:9247 Hi Nix, Thanks for the reply. When you said > This would be due to that process refusing to exit and the user (who started it) > logging out I am pretty sure that is the case as most of the time this problem happended in the late afternoon (even though it can happen at any time) when people finished their works for the day and logout. The question is why the process refusing to exit? When the user logout, I would assume the script (parent) process will send the HUP signal to the child process and this "kill" signal should kill the child process. Looks like either the child process didn't receive this or the child process received the signal but something is running in a higher priority. Would this have anything to do with the kernel parameter settings e.g. semaphore that required to be tuned? Also, why the problem is only happening from time to time but can't be reproduced at will? Many thanks for the help. Best regards, William "Nikola Milutinovic" wrote in message news:3DF6EF4F.5000605@ev.co.yu... > Williamcin wrote: > > I wonder if someone can tell me what's wrong with my Tru64 Unix V5.1a system. > > > > From time to time when we run an inhouse developed software, the Unix process > > will end up using 99% of CPU (basically it is looping) with tty set to "??". > > > > This situation can happen on any users, at any particular time and from PC to > > PC (running the telnet session). When this happened, the "ps -ef|grep mytools" > > for the particular user will be something like > > > > ================ > > GAMALLOM 414726 1 98.3 12:12:13 ?? 6:48.66 /tools/mytools > > ================ > > > > a) what's happening to the run_mytools script process? > > b) why the tty ID become ?? for an interactive process which should attach to a > > tty > > This would be due to that process refusing to exit and the user (who started it) > logging out. The fact it is using 99% CPU tells you that it is a runaway > process, stuck in an infinite loop, ignoring HUP signal. The user logged out and > the child process lost it's controlling terminal, that's why it's set to "??". > > If it is in-house developed, attach a debugger to that process and see where > it's stuck looping. > > Nix. >