aboutsummaryrefslogtreecommitdiff
path: root/lib/std/build.zig
diff options
context:
space:
mode:
authorlithdew <kenta@lithdew.net>2021-04-02 05:28:25 +0900
committerIsaac Freund <ifreund@ifreund.xyz>2021-04-06 11:30:20 +0200
commit2bfc6d14d500dcaf66b8ee7d24637e25e3795a5e (patch)
tree590a0fd6101060b5b7e57ae160dfda3552bc2327 /lib/std/build.zig
parent83a2665772578f6262afc858613023738a7d25ef (diff)
downloadzig-2bfc6d14d500dcaf66b8ee7d24637e25e3795a5e.tar.gz
zig-2bfc6d14d500dcaf66b8ee7d24637e25e3795a5e.zip
os/linux: return error on EALREADY for connect() and getsockoptError()
When a connected socket file descriptor on Linux is re-acquired after being closed, through fuzz testing, it appears that a subsequent attempt to establish a connection with the file descriptor causes EALREADY to be reported. Instead of panicking, choose to return error.ConnectionPending to allow for users to handle this fairly rare case.
Diffstat (limited to 'lib/std/build.zig')
0 files changed, 0 insertions, 0 deletions