diff options
| author | daurnimator <quae@daurnimator.com> | 2020-08-24 02:28:31 +1000 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2020-08-24 02:28:31 +1000 |
| commit | 129d3e274dbc3e11a30e3d54c5da7a944ddcf4f0 (patch) | |
| tree | 386d6b361b9fb75ebb8d09f0e4aeb817cb6aa38c /lib/std/fs | |
| parent | 23a81b439638fee89054ad749f0348ab7d107619 (diff) | |
| download | zig-129d3e274dbc3e11a30e3d54c5da7a944ddcf4f0.tar.gz zig-129d3e274dbc3e11a30e3d54c5da7a944ddcf4f0.zip | |
std: use O_NOCTTY flag
Diffstat (limited to 'lib/std/fs')
| -rw-r--r-- | lib/std/fs/file.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/fs/file.zig b/lib/std/fs/file.zig index 3e22528ea9..6fb2385a85 100644 --- a/lib/std/fs/file.zig +++ b/lib/std/fs/file.zig @@ -101,6 +101,10 @@ pub const File = struct { /// if `std.io.is_async`. It allows the use of `nosuspend` when calling functions /// related to opening the file, reading, writing, and locking. intended_io_mode: io.ModeOverride = io.default_mode, + + /// Set this to allow the opened file to automatically become the + /// controlling TTY for the current process. + allow_ctty: bool = false, }; /// TODO https://github.com/ziglang/zig/issues/3802 |
