Preserve Session Terminal TTY through causal launch

This commit is contained in:
ms2k 2026-07-17 16:54:42 +09:00
commit 39307f4281

View file

@ -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 {