1 |
commit: d5579e07d763403aa8ac770a97e3c36c96f6540a |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 4 19:28:06 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 4 19:28:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=d5579e07 |
7 |
|
8 |
qlop: adapt terminating/exiting logic somewhat |
9 |
|
10 |
It seems that exiting doesn't always come immediately (= the same |
11 |
second) after terminating, so allow a small window (4s) for these to |
12 |
come in sequence to treat them as a single termination. |
13 |
|
14 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
15 |
|
16 |
qlop.c | 2 +- |
17 |
1 file changed, 1 insertion(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/qlop.c b/qlop.c |
20 |
index 762523f..5045d17 100644 |
21 |
--- a/qlop.c |
22 |
+++ b/qlop.c |
23 |
@@ -508,7 +508,7 @@ static int do_emerge_log( |
24 |
if (p[7] == 'm') { |
25 |
parallel_emerge++; |
26 |
} else if (parallel_emerge > 0) { |
27 |
- if (p[7] != 'e' || tstart != last_exit) |
28 |
+ if (p[7] != 'e' || (tstart - 4) <= last_exit) |
29 |
parallel_emerge--; |
30 |
if (p[7] == 'x') |
31 |
last_exit = tstart; |