diff options
| author | lithdew <kenta@lithdew.net> | 2021-04-02 05:28:25 +0900 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2021-04-06 11:30:20 +0200 |
| commit | 2bfc6d14d500dcaf66b8ee7d24637e25e3795a5e (patch) | |
| tree | 590a0fd6101060b5b7e57ae160dfda3552bc2327 /src/Sema.zig | |
| parent | 83a2665772578f6262afc858613023738a7d25ef (diff) | |
| download | zig-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 'src/Sema.zig')
0 files changed, 0 insertions, 0 deletions
