mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
Fix std.net.connectUnixSocket in evented I/O mode
The event loop constant was missing.
This commit is contained in:
parent
ce5035c07d
commit
1e07487904
@ -615,6 +615,7 @@ pub fn connectUnixSocket(path: []const u8) !fs.File {
|
||||
var addr = try std.net.Address.initUnix(path);
|
||||
|
||||
if (std.io.is_async) {
|
||||
const loop = std.event.Loop.instance orelse return error.WouldBlock;
|
||||
try loop.connect(sockfd, &addr.any, addr.getOsSockLen());
|
||||
} else {
|
||||
try os.connect(sockfd, &addr.any, addr.getOsSockLen());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user