Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>
Subject: Re: Why tty ID is set to ?? for an interactive process?
Date: Thu, 12 Dec 2002 07:34:41 +0100	[thread overview]
Message-ID: <3DF82E01.4000001@ev.co.yu> (raw)
In-Reply-To: at8g4a$11ru7d$1@ID-174003.news.dfncis.de

BillLi wrote:

> 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.

Any process can decide to ignore signalls - all, except SIGKILL, which is never 
received actually, but the kernel just kills the recipient of the signal. This 
override is done via a system call "sigaction()".

> 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?

Two things. One - try to find out if your application is calling "sigaction()", 
either search the source or use "alpha-trace-1.34" (or whatever it is called) to 
trace system calls. Two - if it is in-house developed, get ahold of a developer, 
connect a debugger to such a process and see where it's looping (even "dbx" can 
do this, let alone "LaDebug").

Nix.



      reply	other threads:[~2002-12-12  6:34 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
2002-12-12  6:34     ` Nikola Milutinovic [this message]
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