home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:4761 comp.unix.questions:13541 comp.unix.programmer:5326 comp.unix.internals:1963
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!math.ksu.edu!deadend
- From: tar@math.ksu.edu (Tim Ramsey)
- Newsgroups: comp.unix.wizards,comp.unix.questions,comp.unix.programmer,comp.unix.internals
- Subject: Re: Changing the owner of a process
- Followup-To: comp.unix.internals
- Date: 17 Nov 1992 19:40:58 -0600
- Organization: Dept. of Mathematics, Kansas State University
- Lines: 23
- Message-ID: <1ec6vaINN730@hilbert.math.ksu.edu>
- References: <1992Oct29.162445.23551@eng.ufl.edu> <1cpjs4INNn3@early-bird.think.com> <1992Nov5.152833.27744@dale.ksc.nasa.gov> <1992Nov17.142837.21252@dale.ksc.nasa.gov> <1992Nov17.200813.18997@eng.ufl.edu>
- NNTP-Posting-Host: hilbert.math.ksu.edu
- Keywords: process owner
-
- [ Followups set to comp.unix.internals ]
-
- msm@eng.ufl.edu (Michael S. McLean) writes:
-
- >There is no need to write another device driver for this. /dev/kmem will
- >suffice.
-
- You can do it by poking about in /dev/kmem, but it's not safe. Consider:
-
- Process A Process B Process C
- Open /dev/kmem <runs>
- Find B proc table entry <runs>
- Update proc table entry <exits> <starts up>
-
- Between the time when Process A locates the proc table entry for Process B
- and the time that it updates the entry, Process B exits and Process C is
- started -- and given Process B's old table entry. You end up updating
- the wrong process.
-
- --
- Tim Ramsey, 913.532.6750 | I'm a sysadmin and I'm okay;
- Department of Mathematics | I work all night and I sleep all day.
- Kansas State University |
-