File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ readme = "README.md"
15
15
16
16
[dependencies ]
17
17
comma = " 1.0"
18
- nix = " 0.14 "
18
+ nix = " 0.25 "
19
19
regex = " 1"
20
20
tempfile = " 3"
21
21
thiserror = " 1.0.34"
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ impl PtyProcess {
98
98
// on Linux this is the libc function, on OSX this is our implementation of ptsname_r
99
99
let slave_name = ptsname_r ( & master_fd) ?;
100
100
101
- match fork ( ) ? {
101
+ match unsafe { fork ( ) ? } {
102
102
ForkResult :: Child => {
103
103
setsid ( ) ?; // create new session with child as session leader
104
104
let slave_fd = open (
@@ -202,7 +202,7 @@ impl PtyProcess {
202
202
match signal:: kill ( self . child_pid , sig) {
203
203
Ok ( _) => { }
204
204
// process was already killed before -> ignore
205
- Err ( nix:: Error :: Sys ( nix :: errno:: Errno :: ESRCH ) ) => {
205
+ Err ( nix:: errno:: Errno :: ESRCH ) => {
206
206
return Ok ( wait:: WaitStatus :: Exited ( Pid :: from_raw ( 0 ) , 0 ) )
207
207
}
208
208
Err ( e) => return Err ( Error :: from ( e) ) ,
You can’t perform that action at this time.
0 commit comments