Re: Cache parent's pid as `ps_ppid' and use it instead of `ps_pptr->ps_pid'.

2021-01-13 Thread Vitaliy Makkoveev
On Wed, Jan 13, 2021 at 02:10:25PM -0300, Martin Pieuchot wrote: > On 02/01/21(Sat) 21:54, Vitaliy Makkoveev wrote: > > This allows us to unlock getppid(2). Also NetBSD, DragonflyBSD and OSX > > do the same. > > Seems the way to go, two comments below. > > > @@ -694,6 +694,7 @@

Re: Cache parent's pid as `ps_ppid' and use it instead of `ps_pptr->ps_pid'.

2021-01-13 Thread Martin Pieuchot
On 02/01/21(Sat) 21:54, Vitaliy Makkoveev wrote: > This allows us to unlock getppid(2). Also NetBSD, DragonflyBSD and OSX > do the same. Seems the way to go, two comments below. > Index: kern/exec_elf.c > === > RCS file:

Cache parent's pid as `ps_ppid' and use it instead of `ps_pptr->ps_pid'.

2021-01-02 Thread Vitaliy Makkoveev
This allows us to unlock getppid(2). Also NetBSD, DragonflyBSD and OSX do the same. Index: kern/exec_elf.c === RCS file: /cvs/src/sys/kern/exec_elf.c,v retrieving revision 1.156 diff -u -p -r1.156 exec_elf.c --- kern/exec_elf.c 7