implemented functions

This commit is contained in:
2025-03-16 16:57:58 -04:00
parent 182182cacb
commit 464caa4517
6 changed files with 346 additions and 33 deletions

View File

@@ -613,6 +613,7 @@ pub fn enable_reaping() -> ShResult<()> {
pub fn wait_fg(job: Job) -> ShResult<()> {
flog!(TRACE, "Waiting on foreground job");
let mut code = 0;
flog!(DEBUG,job.pgid());
attach_tty(job.pgid())?;
disable_reaping()?;
let statuses = write_jobs(|j| j.new_fg(job))?;