summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/imxccm.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2018-05-28 08:55:11 +0000
committermpi <mpi@openbsd.org>2018-05-28 08:55:11 +0000
commitb0204ad4c4f1a5f3321a8f25851aaa79e1fd1f89 (patch)
treebb0b7fc1093158363ae151275a13ce6e3443db2f /sys/dev/fdt/imxccm.c
parentRemove unused <sys/param.h> (diff)
downloadwireguard-openbsd-b0204ad4c4f1a5f3321a8f25851aaa79e1fd1f89.tar.xz
wireguard-openbsd-b0204ad4c4f1a5f3321a8f25851aaa79e1fd1f89.zip
Returns EBUSY if dup2(2) is called for a LARVAL file.
This prevents a panic due to a double free if a program exits after having called accept(2) and dup2(2) on the same fd but without the corresponding connect(5). It will also allows us to simplify file descriptor locking. The error code has been choosed to match Linux's behavior. Pointed by Mathieu on tech@ after a discussion with guenther@. ok visa@
Diffstat (limited to 'sys/dev/fdt/imxccm.c')
0 files changed, 0 insertions, 0 deletions