atproto relay implementation in zig zlay.waow.tech
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: use sigemptyset() for sigaction mask (linux compat)

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

zzstoatzz 07992289 79fb31fe

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