From: peter@nmti.com (Peter da Silva)
Subject: Re: Immortal process
Date: Thu, 23 Jun 1994 15:22:04 GMT [thread overview]
Message-ID: <id.OSMA1.ZKE@nmti.com> (raw)
In-Reply-To: werme.772377517@alingo.zk3.dec.com
In article <werme.772377517@alingo.zk3.dec.com>,
Eric Werme <werme@zk3.dec.com> wrote:
> Not at all. Root can signal any process, but in many cases the process
> is in an uninteruptible state. These are often used only
> brief periods, like waiting for DMA'd disk I/O to complete where you
> don't want to let thing stop right away.
To be precise, in UNIX signals (not interrupts, but software signals) are
only recieved when the system makes the transition from kernel mode to
user mode. To make that useful for asynchronous signals, there are explicit
checks in various places in the kernel to force this transition if a signal
is pending. If there is no check in some loop in the kernel, then the process
will never receive that signal.
(as an aside, this is why signals used to always interrupt a read... the read
system call would see the signal and return to user mode. Once it had done
this, there was no way to safely re-enter kernel mode and restart the read.
4.3 derived kernels have the return code from the signal handler call the
sigreturn system call. This makes for cleaner user mode handling of signals
(since you don't have to check for reads returning EINTR), but it's undoubtedly
quite tricky to implement without opening up security holes. I assume OSF/1
does something similar.)
Immortal processes are usually the result of device drivers and other loaded
or linked modules not doing enough checks. It's rare that the kernel will
leave you in this state elsewhere.
--
Peter da Silva `-_-'
Network Management Technology Incorporated 'U`
1601 Industrial Blvd. Sugar Land, TX 77478 USA
+1 713 274 5180 "Hast Du heute schon Deinen Wolf umarmt?"
prev parent reply other threads:[~1994-06-23 15:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-21 15:39 Immortal process anh
1994-06-23 13:18 ` Eric Werme
1994-06-23 15:22 ` Peter da Silva [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