From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e200c32277c476c5 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-23 08:46:21 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gatech!swrinde!news.uh.edu!uuneo.neosoft.com!nmtigw!peter From: peter@nmti.com (Peter da Silva) Subject: Re: Immortal process Message-ID: Sender: peter@nmti.com (peter da silva) Organization: Network/development platform support, NMTI References: <1994Jun21.103941.66237@kuhub.cc.ukans.edu> Date: Thu, 23 Jun 1994 15:22:04 GMT In article , Eric Werme 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?"