From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,85504b55b7c06340,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-12-09 20:48:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!64.12.151.230!ngpeer.news.aol.com!audrey-m1.news.aol.com!not-for-mail X-Admin: news@aol.com From: williamcin@aol.com (Williamcin) Newsgroups: comp.unix.tru64 Date: 10 Dec 2002 04:47:49 GMT Organization: AOL http://www.aol.com.au Subject: Why tty ID is set to ?? for an interactive process? Message-ID: <20021209234749.16577.00000185@mb-co.aol.com> Xref: archiver1.google.com comp.unix.tru64:9230 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 "??". Normally, after the user log onto my Unix server, they will run a ksh script. Inside the script, it will do some key definations and then invoke the binary executables. The following is the normal output when I do a "ps -ef|grep mytools" for a user c1511 ============== c1511 329614 329367 0.0 15:00:58 pts/7 0:00.01 run_mytools c1511 329623 329614 0.0 15:00:58 pts/7 0:00.45 /tools/mytools ============== That is the perfect situation; however, from time to time, the /tools/mytools process will go into loop, taking 99% of the CPU with the tty ID set to "??" and the parent process ID become 1. 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 ================ I don't believe it is a bug on "mytools" as this problem happened randomly and can't be reproduced at will. It can happen on any users with any PC and at any time. I am looking for any possible explanation on 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 and if possible, some hints to pin down the problem and find out a solution for this. Many thanks for the help.