hegde@umvlsi.ecs.umass.edu (Uday Hegde) (06/10/90)
I noticed something peculiar sometime back on our system, which runs ULTRIX-32 V3.1 (Rev. 9). I had a process, PID 29973, which had been around for a couple of days and had been inherited by init. On trying to kill that process, I got the message "not owner" Doing a "ps" revealed that there was one other process, belonging to some other user, which had pid 29973 and my process was still around! I was unable to send any signals to my process as long as the other process existed, but could stop, restart and terminate my process after the other process with the same pid had terminated. I am not sure if this matters, but since my process does a lot of "sleep"ing, it was idle and had been swapped out when I noticed the existence of duplicate PID's. Is this behavior common among UNIX-like systems or is it a bug in ULTRIX? I am curious as to how PIDs are allocated and under what circumstances two processes end up with the same pid. _______________________________________________________________________________ Uday Hegde Internet: hegde@cs.umass.edu ECE, UMass Amherst hegde@umvlsi.ecs.umass.edu Bitnet : hegde@umass.bitnet
darcy@druid.uucp (D'Arcy J.M. Cain) (06/11/90)
In article <1049@umvlsi.ecs.umass.edu> hegde@umvlsi.ecs.umass.edu (Uday Hegde) writes: > [...] >Doing a "ps" revealed that there was one other process, belonging to >some other user, which had pid 29973 and my process was still around! > [...] >Is this behavior common among UNIX-like systems or is it a bug in ULTRIX? I don't know about ULTRIX but I am sure that if that happens it is a serious bug. The only kernel source I have access to is Minix and that looks at each active PID in the system before assigning a new one to make sure that there is no duplication. -- D'Arcy J.M. Cain (darcy@druid) | Government: D'Arcy Cain Consulting | Organized crime with an attitude West Hill, Ontario, Canada | (416) 281-6094 |