atproto relay implementation in zig zlay.waow.tech

fix: use empty_sigset for cross-platform sigaction mask

macOS sigset_t is an integer, linux is [16]c_ulong.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+2 -2
+2 -2
src/main.zig
··· 172 fn installSignalHandlers() void { 173 const act: std.posix.Sigaction = .{ 174 .handler = .{ .handler = signalHandler }, 175 - .mask = 0, 176 .flags = 0, 177 }; 178 std.posix.sigaction(std.posix.SIG.INT, &act, null); ··· 181 // ignore SIGPIPE — writing to disconnected consumers must not crash the process 182 const ignore_act: std.posix.Sigaction = .{ 183 .handler = .{ .handler = std.posix.SIG.IGN }, 184 - .mask = 0, 185 .flags = 0, 186 }; 187 std.posix.sigaction(std.posix.SIG.PIPE, &ignore_act, null);
··· 172 fn installSignalHandlers() void { 173 const act: std.posix.Sigaction = .{ 174 .handler = .{ .handler = signalHandler }, 175 + .mask = std.posix.empty_sigset, 176 .flags = 0, 177 }; 178 std.posix.sigaction(std.posix.SIG.INT, &act, null); ··· 181 // ignore SIGPIPE — writing to disconnected consumers must not crash the process 182 const ignore_act: std.posix.Sigaction = .{ 183 .handler = .{ .handler = std.posix.SIG.IGN }, 184 + .mask = std.posix.empty_sigset, 185 .flags = 0, 186 }; 187 std.posix.sigaction(std.posix.SIG.PIPE, &ignore_act, null);