Merge pull request #102 from Mange/fix-tty-output

Support running commands that allocate their own TTYs (*nix)
This commit is contained in:
Félix Saparelli 2019-01-19 18:48:43 +13:00 committed by GitHub
commit 62d24168d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ mod imp {
}
command
.before_exec(|| setpgid(Pid::from_raw(0), Pid::from_raw(0)).map_err(from_nix_error))
.before_exec(|| setsid().map_err(from_nix_error).map(|_|()))
.spawn()
.and_then(|p| {
Ok(Process {