File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -682,11 +682,7 @@ var signalHandlingData: ?struct {
682
682
old_sigwinch : ? SystemCapabilities.Sigaction = null ,
683
683
684
684
pub fn handleSignal (signo : i32 ) callconv (.C ) void {
685
- var f = std.fs.File {
686
- .handle = signalHandlingData .? .pipe .write ,
687
- .capable_io_mode = .blocking ,
688
- .intended_io_mode = .blocking ,
689
- };
685
+ var f = std.fs.File { .handle = signalHandlingData .? .pipe .write };
690
686
f .writer ().writeInt (i32 , signo , .little ) catch {};
691
687
}
692
688
} = null ;
@@ -1286,11 +1282,7 @@ pub const Editor = struct {
1286
1282
if (! is_windows ) {
1287
1283
if (pollfds [2 ].revents & SystemCapabilities .POLL_IN != 0 ) no_read : {
1288
1284
// A signal! Let's handle it.
1289
- var f = std.fs.File {
1290
- .handle = signalHandlingData .? .pipe .read ,
1291
- .capable_io_mode = .blocking ,
1292
- .intended_io_mode = .blocking ,
1293
- };
1285
+ var f = std.fs.File { .handle = signalHandlingData .? .pipe .read };
1294
1286
const signo = f .reader ().readInt (i32 , .little ) catch {
1295
1287
break :no_read ;
1296
1288
};
You can’t perform that action at this time.
0 commit comments