File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ pub const ChildProcess = struct {
339
339
340
340
fn waitUnwrappedPosix (self : * ChildProcess ) ! void {
341
341
const res : os.posix.WaitPidResult = if (comptime builtin .target .isDarwin ())
342
- try os .posix_spawn .waitpid (self .pid , 0 )
342
+ try os .posix_spawn .waitpid (self .id , 0 )
343
343
else
344
344
os .posix .waitpid (self .id , 0 );
345
345
const status = res .status ;
Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ pub const File = struct {
409
409
try os .posix .fchmod (self .handle , new_mode );
410
410
}
411
411
412
- pub const ChownError = std .os .FChownError ;
412
+ pub const ChownError = std .os .posix . FChownError ;
413
413
414
414
/// Changes the owner and group of the file.
415
415
/// The process must have the correct privileges in order to do this
Original file line number Diff line number Diff line change 1
1
//! This file contains posix abstractions and wrappers around
2
2
//! OS-specific APIs for conforming platforms, whether libc is or is not linked.
3
- //! APIs defined here can not have comparable semantics on Windows.
3
+ //! Purpose is to have error handling for APIs, which can not have comparable
4
+ //! semantics on non-posix systems like Windows.
4
5
5
6
const std = @import ("std" );
6
7
const builtin = @import ("builtin" );
You can’t perform that action at this time.
0 commit comments