Skip to content

Commit 8b72391

Browse files
committed
Fix: fork() call is unsafe now
Signed-off-by: Matthias Beyer <[email protected]>
1 parent 6d82749 commit 8b72391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)