1
1
mirror of https://github.com/wez/wezterm.git synced 2024-08-16 09:40:34 +03:00

Modified SlavePty spawn_command macros to target windows/non-windows platforms

This commit is contained in:
sanitycheck 2023-11-12 08:46:37 -05:00
parent df290f56de
commit 9d3dfeb709
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ impl_downcast!(ChildKiller);
/// Can be used to spawn processes into the pty.
pub trait SlavePty {
/// Spawns the command specified by the provided CommandBuilder
#[cfg(unix)]
#[cfg(not(windows))]
fn spawn_command(&self, cmd: CommandBuilder) -> Result<Box<dyn Child + Send + Sync>, Error>;
/// Spawns a command specified by the provided CommandBuilder.
/// Accepts an Option<HANDLE> to a primary/impersonation token to spawn the process in the context of a different user.

View File

@ -109,7 +109,7 @@ struct Slave {
}
impl SlavePty for Slave {
#[cfg(unix)]
#[cfg(not(windows))]
fn spawn_command(&self, cmd: CommandBuilder) -> anyhow::Result<Box<dyn Child + Send + Sync>> {
ensure!(
cmd.is_default_prog(),