this repo has no description
13
fork

Configure Feed

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

tty: assume posix systems support posix.empty_sigset

It should be pretty safe to assume that posix.empty_sigset
is supported on most, if not all, posix systems. Individual
OSes that need a different default value may add a case to
the switch like macos.

This should open up support for most other posix systems.

closes #151

authored by

CJ van den Berg and committed by
Tim Culverhouse
bd0438a1 2237a705

+2 -6
+2 -6
src/tty.zig
··· 59 59 .handler = .{ .handler = PosixTty.handleWinch }, 60 60 .mask = switch (builtin.os.tag) { 61 61 .macos => 0, 62 - .linux => posix.empty_sigset, 63 - .freebsd => posix.empty_sigset, 64 - else => @compileError("os not supported"), 62 + else => posix.empty_sigset, 65 63 }, 66 64 .flags = 0, 67 65 }; ··· 95 93 .handler = .{ .handler = posix.SIG.DFL }, 96 94 .mask = switch (builtin.os.tag) { 97 95 .macos => 0, 98 - .linux => posix.empty_sigset, 99 - .freebsd => posix.empty_sigset, 100 - else => @compileError("os not supported"), 96 + else => posix.empty_sigset, 101 97 }, 102 98 .flags = 0, 103 99 };