From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,d7f4074992f809a0 X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1020c6,d7f4074992f809a0 X-Google-Attributes: gid1020c6,public X-Google-Thread: 1164f8,d7f4074992f809a0 X-Google-Attributes: gid1164f8,public From: Ong Guan Sin Subject: Re: Q: Cannot kill LOGIN processes by superuser Date: 1995/06/12 Message-ID: <3rh891$noo@nuscc.nus.sg>#1/1 X-Deja-AN: 104314626 references: <3r5lgc$b3o@nuscc.nus.sg> <3r6utc$7n8@nntp.interaccess.com> to: brian@hercules.cb.att.com content-type: text/plain; charset=us-ascii organization: National University of Singapore x-url: news:D9x00z.C8r@nntpa.cb.att.com mime-version: 1.0 newsgroups: comp.unix.questions,comp.unix.admin,comp.sys.dec x-mailer: Mozilla 1.1N (X11; I; SunOS 5.4 sun4d) brian@hercules.cb.att.com (Brian Bebeau) wrote: > [sniped] >This is more likely the case. A process that goes to sleep with a priority >less than PZERO (usually defined in /usr/include/sys/param.h or some such >place) will simply queue up signals but not respond to them until the >priority is restored to greater than PZERO. This usually happens in device >drivers, as the poster above stated. If a process is in a critical section >and needs some system resource that isn't available, it'll go to sleep >with the lower priority. I've seen this happen most often waiting for a >tape device to become free. The only way I've seen to get rid of such >processes so far is to simply reboot. After thorough investigation into the system, I have found the culprit: a "pine" process, which is already holding exclusive lock over the user's mailbox, was waiting for something to happen, probably some system resource. And those "login" processes stuck at the point of checking mailbox status (any new mail). I am pretty sure the login processes are waiting for the mailbox to be available as their WCHANs (waiting channels) are similar and pointing to the mailbox's in-core inode location. One thing I still cannot figure is what is the "pine" process waiting for. I know its WCHAN, which is completely different (and different range) from the previous WCHANs, but just could not figure what it represents. Can anyone advise on what are the things a WCHAN value can represent, or what is the way to relate a WCHAN value to the resources it represents? I managed to solve the unable to login situation, by moving the mailbox around (producing different inode location), but those processes ("pine" and "login") are still dangling. >As far as the original poster's problem goes, *what* user id are you trying >to use? And what are the processes running with that id? It sounds like >you may be trying to give someone a userid that's already used by >something, not necessarily a user. Generally speaking, it's not a good >idea to give users an id below 100. Ids below 100 are recommended to be used >only by system processes, like root, sys, uucp, etc. More information >would be helpful. The user id is 2323, so I suppose has nothing to do with what you said. But can I ask, what would be the consequences if user ids below 100 are given to users? > >-- >=============================================================================== >Brian Bebeau | IBS at AT&T Network Systems >brian@hercules.cb.att.com | > -- 01010101010101010101010101010101010101010101010101010101010101010101010101 1 Ong Guan Sin E-Mail: cceonggs@nus.sg 0 0 Computer Centre ongnsn@singnet.com.sg 1 1 National University of Singapore Voice : +65 7726420(O) 4680954(R) 0 01010101010101010101010101010101010101010101010101010101010101010101010101