Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "BillLi" <williamcin@aol.com>
Subject: Re: Why tty ID is set to ?? for an interactive process?
Date: Thu, 12 Dec 2002 10:01:17 +1100	[thread overview]
Message-ID: <at8g4a$11ru7d$1@ID-174003.news.dfncis.de> (raw)
In-Reply-To: 3DF6EF4F.5000605@ev.co.yu

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" <Nikola.Milutinovic@ev.co.yu> 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.
>




  reply	other threads:[~2002-12-11 23:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10  4:47 Why tty ID is set to ?? for an interactive process? Williamcin
2002-12-11  7:54 ` Nikola Milutinovic
2002-12-11 23:01   ` BillLi [this message]
2002-12-12  6:34     ` Nikola Milutinovic
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox