Preserve Session Terminal TTY through causal launch
This commit is contained in:
parent
2af8a4f09f
commit
39307f4281
1 changed files with 87 additions and 8 deletions
|
|
@ -1376,7 +1376,12 @@ pub fn parse_wrapper_arguments(
|
|||
if arguments.next().as_deref() != Some(OsStr::new("--")) {
|
||||
return Err(io::Error::other("wrapper target separator is missing"));
|
||||
}
|
||||
Some(File::open(format!("/proc/self/fd/{descriptor}"))?)
|
||||
Some(
|
||||
File::options()
|
||||
.read(true)
|
||||
.write(true)
|
||||
.open(format!("/proc/self/fd/{descriptor}"))?,
|
||||
)
|
||||
} else if next.as_deref() == Some(OsStr::new("--")) {
|
||||
None
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue