2e20a70dbf
Should fix PR/36939 and make the rlimit code MP safe. Posted for comment to tech-kern (non received!) The p_limit field (for a process) is only be changed once (on the first write), and a reference to the old structure is kept (for code paths that have cached the pointer). Only p->p_limit is now locked by p->p_mutex, and since the referenced memory will not go away, is only needed if the pointer is to be changed. The contents of 'struct plimit' are all locked by pl_mutex, except that the code doesn't bother to acquire it for reads (which are basically atomic). Add FORK_SHARELIMIT that causes fork1() to share the limits between parent and child, use it for the IRIX_PR_SULIMIT. Fix borked test for both IRIX_PR_SUMASK and IRIX_PR_SDIR being set. |
||
---|---|---|
.. | ||
Makefile | ||
files.netbsd32 | ||
netbsd32.h | ||
netbsd32_compat_09.c | ||
netbsd32_compat_10.c | ||
netbsd32_compat_12.c | ||
netbsd32_compat_13.c | ||
netbsd32_compat_14.c | ||
netbsd32_compat_20.c | ||
netbsd32_compat_30.c | ||
netbsd32_compat_43.c | ||
netbsd32_conv.h | ||
netbsd32_core.c | ||
netbsd32_event.c | ||
netbsd32_exec.h | ||
netbsd32_exec_aout.c | ||
netbsd32_exec_elf32.c | ||
netbsd32_execve.c | ||
netbsd32_fs.c | ||
netbsd32_ioctl.c | ||
netbsd32_ioctl.h | ||
netbsd32_ipc.c | ||
netbsd32_lwp.c | ||
netbsd32_netbsd.c | ||
netbsd32_select.c | ||
netbsd32_sem.c | ||
netbsd32_signal.c | ||
netbsd32_socket.c | ||
netbsd32_syscall.h | ||
netbsd32_syscallargs.h | ||
netbsd32_syscalls.c | ||
netbsd32_sysctl.c | ||
netbsd32_sysent.c | ||
netbsd32_time.c | ||
netbsd32_wait.c | ||
syscalls.conf | ||
syscalls.master |