On 02/06/18(Sat) 04:27, Martin Pieuchot wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   m...@cvs.openbsd.org    2018/06/02 04:27:43
> 
> Modified files:
>       sys/kern       : kern_exec.c exec_script.c kern_descrip.c 
>                        kern_event.c tty_pty.c sys_pipe.c 
>                        uipc_syscalls.c vfs_syscalls.c 
>       sys/sys        : filedesc.h file.h 
> 
> Log message:
> Put file descriptors on shared data structures when they are completely
> setup.
> 
> LARVAL fd still exist, but they are no longer marked with a flag and no
> longer reachable via `fd_ofiles[]'.  This allows us to simplifies a lot
> code grabbing new references to fds.
> 
> All of this is now possible because dup2(2) refuses to clone LARVAL fds.
> 
> Note that the `fdplock' could now be release in all open(2)-like syscalls,
> just like it is done in accept(2).
> 
> With inputs from Mathieu -, visa@, guenther@ and art@
> 
> ok visa@, bluhm@

and tedu@ as well :)

Reply via email to