← Commit list

6f22624a9

Denys Vlasenko
Denys Vlasenko
2009-06-03
FAILED Duration: 29s

Subject

hush: fix a case when backgrounded cmd makes shell hang

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush.c+2 -0
@@ -3505,6 +3505,8 @@ static int checkjobs(struct pipe* fg_pipe)
#endif
return rcode;
}
+ if (!fg_pipe->alive_cmds)
+ return rcode;
}
/* There are still running processes in the fg pipe */
goto wait_more; /* do waitpid again */