diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-10-28 18:45:53 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-10-29 06:20:52 -0700 |
| commit | 05b28409e7204f78e3edb32ea9c46b10e4e97cef (patch) | |
| tree | 4db0f476cbb8718941df6c07a375ee384f1b0d00 /lib/std/std.zig | |
| parent | b863f2548b95cdc8b2e2818ac3a26e553be155dc (diff) | |
| download | zig-05b28409e7204f78e3edb32ea9c46b10e4e97cef.tar.gz zig-05b28409e7204f78e3edb32ea9c46b10e4e97cef.zip | |
std.Io.Threaded: install and cleanup signal handlers
rather than in start code. delete std.options.keep_sig_io and
std.options.keep_sig_pipe
Diffstat (limited to 'lib/std/std.zig')
| -rw-r--r-- | lib/std/std.zig | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/std/std.zig b/lib/std/std.zig index ff1976ae04..1b8142ce4c 100644 --- a/lib/std/std.zig +++ b/lib/std/std.zig @@ -144,21 +144,6 @@ pub const Options = struct { crypto_fork_safety: bool = true, - keep_sig_io: bool = false, - - /// By default Zig disables SIGPIPE by setting a "no-op" handler for it. Set this option - /// to `true` to prevent that. - /// - /// Note that we use a "no-op" handler instead of SIG_IGN because it will not be inherited by - /// any child process. - /// - /// SIGPIPE is triggered when a process attempts to write to a broken pipe. By default, SIGPIPE - /// will terminate the process instead of exiting. It doesn't trigger the panic handler so in many - /// cases it's unclear why the process was terminated. By capturing SIGPIPE instead, functions that - /// write to broken pipes will return the EPIPE error (error.BrokenPipe) and the program can handle - /// it like any other error. - keep_sig_pipe: bool = false, - /// By default, std.http.Client will support HTTPS connections. Set this option to `true` to /// disable TLS support. /// |
