diff options
author | 2018-05-28 08:55:11 +0000 | |
---|---|---|
committer | 2018-05-28 08:55:11 +0000 | |
commit | b0204ad4c4f1a5f3321a8f25851aaa79e1fd1f89 (patch) | |
tree | bb0b7fc1093158363ae151275a13ce6e3443db2f /sys/dev/fdt/imxccm.c | |
parent | Remove unused <sys/param.h> (diff) | |
download | wireguard-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