diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-31 06:30:08 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-31 06:30:08 -0500 |
commit | 8bddddae5b86b79236ab760f62ecf32911b62802 (patch) | |
tree | 85b8556fba476def6067ec84f8128918edf1e0f7 /src | |
parent | 0abdc21a320cdde1b385fe0eb73ba5956c9744a7 (diff) | |
download | nbsh-8bddddae5b86b79236ab760f62ecf32911b62802.tar.gz nbsh-8bddddae5b86b79236ab760f62ecf32911b62802.zip |
also need to SIGCONT the process group leader
in case we didn't set the process group as the foreground fast enough
before the process tried to do a read
Diffstat (limited to 'src')
-rw-r--r-- | src/pipe.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pipe.rs b/src/pipe.rs index b75f937..f4b2d21 100644 --- a/src/pipe.rs +++ b/src/pipe.rs @@ -66,6 +66,11 @@ pub async fn run() { ) .unwrap(); nix::unistd::close(pty).unwrap(); + nix::sys::signal::kill( + nix::unistd::Pid::from_raw(-pg.unwrap()), + nix::sys::signal::Signal::SIGCONT, + ) + .unwrap(); } futures.push(async move { (child.status_no_drop().await.unwrap(), i == last) |