Now we cache parent's pid as atomic `ps_ppid'. It's time to unlock getppid(2).
Index: sys/kern/syscalls.master =================================================================== RCS file: /cvs/src/sys/kern/syscalls.master,v retrieving revision 1.207 diff -u -p -r1.207 syscalls.master --- sys/kern/syscalls.master 18 Mar 2020 19:33:36 -0000 1.207 +++ sys/kern/syscalls.master 17 Jan 2021 15:23:22 -0000 @@ -107,7 +107,7 @@ 36 STD { void sys_sync(void); } 37 STD { int sys_msyscall(void *addr, size_t len); } 38 STD { int sys_stat(const char *path, struct stat *ub); } -39 STD { pid_t sys_getppid(void); } +39 STD NOLOCK { pid_t sys_getppid(void); } 40 STD { int sys_lstat(const char *path, struct stat *ub); } 41 STD NOLOCK { int sys_dup(int fd); } 42 STD { int sys_fstatat(int fd, const char *path, \