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"
1515
1616[dependencies ]
1717comma = " 1.0"
18- nix = " 0.14 "
18+ nix = " 0.25 "
1919regex = " 1"
2020tempfile = " 3"
2121thiserror = " 1.0.34"
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ impl PtyProcess {
9898 // on Linux this is the libc function, on OSX this is our implementation of ptsname_r
9999 let slave_name = ptsname_r ( & master_fd) ?;
100100
101- match fork ( ) ? {
101+ match unsafe { fork ( ) ? } {
102102 ForkResult :: Child => {
103103 setsid ( ) ?; // create new session with child as session leader
104104 let slave_fd = open (
@@ -202,7 +202,7 @@ impl PtyProcess {
202202 match signal:: kill ( self . child_pid , sig) {
203203 Ok ( _) => { }
204204 // process was already killed before -> ignore
205- Err ( nix:: Error :: Sys ( nix :: errno:: Errno :: ESRCH ) ) => {
205+ Err ( nix:: errno:: Errno :: ESRCH ) => {
206206 return Ok ( wait:: WaitStatus :: Exited ( Pid :: from_raw ( 0 ) , 0 ) )
207207 }
208208 Err ( e) => return Err ( Error :: from ( e) ) ,
You can’t perform that action at this time.
0 commit comments