aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-05-23 15:03:32 (GMT)
committerBoris Kolpackov <boris@codesynthesis.com>2019-05-23 15:03:32 (GMT)
commit43986bd16857a33826fcf10ab5d3f4fae1fb5ac7 (patch)
tree9ce93ad71e7f5a20fc3ed45ee6922dd9c1343c9d
parent9e8fe1472b50b5aae98ab7be7fe0444d251c8d7d (diff)
Fix bug in start_extract() process management logic
-rw-r--r--bpkg/archive.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/bpkg/archive.cxx b/bpkg/archive.cxx
index 9d19dc5..917bdf5 100644
--- a/bpkg/archive.cxx
+++ b/bpkg/archive.cxx
@@ -157,7 +157,10 @@ namespace bpkg
tpr = process (tpp, &args[what = i], dpr);
}
else
+ {
+ dpr = process (process_exit (0)); // Successfully exited.
tpr = process (tpp, &args[what = 0]);
+ }
return make_pair (move (dpr), move (tpr));
}
@@ -228,7 +231,10 @@ namespace bpkg
tpr = process (tpp, &args[what = i], dpr, -1, (diag ? 2 : nfd.get ()));
}
else
+ {
+ dpr = process (process_exit (0)); // Successfully exited.
tpr = process (tpp, &args[what = 0], 0, -1, (diag ? 2 : nfd.get ()));
+ }
return make_pair (move (dpr), move (tpr));
}