summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2024-11-29 11:41:49 +0900
committerYusuke Endoh <[email protected]>2024-11-29 12:38:20 +0900
commitf9d0bc22f5ca019f3c517b42ea4a50867fe56700 (patch)
tree9104a1372a215402d502e5da08e471e1324bd1d1 /ext/socket
parenta32981b6b89c23c7b650c6b1d1309e86856735ff (diff)
Remove a useless check if fd is negative
If `slave` is negative, neither `dup2(slave,0)` or `close(slave)` should be executed. I believe this check is completely useless.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12207
Diffstat (limited to 'ext/socket')
0 files changed, 0 insertions, 0 deletions