From 308c97b6148b3efe6ac5e744992a3e7202aee694 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 20 Feb 2025 20:01:39 +1300 Subject: [PATCH] Pass all arguments to `UNIXEndpoint#bind` through to super. --- lib/io/endpoint/unix_endpoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/io/endpoint/unix_endpoint.rb b/lib/io/endpoint/unix_endpoint.rb index 74d658e..23c60b6 100644 --- a/lib/io/endpoint/unix_endpoint.rb +++ b/lib/io/endpoint/unix_endpoint.rb @@ -35,7 +35,7 @@ def bound? return false end - def bind(&block) + def bind(...) super rescue Errno::EADDRINUSE # If you encounter EADDRINUSE from `bind()`, you can check if the socket is actually accepting connections by attempting to `connect()` to it. If the socket is still bound by an active process, the connection will succeed. Otherwise, it should be safe to `unlink()` the path and try again.