mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
Merge pull request #102 from Mange/fix-tty-output
Support running commands that allocate their own TTYs (*nix)
This commit is contained in:
commit
62d24168d6
@ -114,7 +114,7 @@ mod imp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
command
|
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()
|
.spawn()
|
||||||
.and_then(|p| {
|
.and_then(|p| {
|
||||||
Ok(Process {
|
Ok(Process {
|
||||||
|
Loading…
Reference in New Issue
Block a user