aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-07 08:27:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-07 08:27:11 +0200
commit7e3092b83516e720ef367e8172421266078ee7e6 (patch)
treed148680100da8dc9ae9a634bce9a82364825b20e /libbuild2/utility.cxx
parent20ce40e34faf6b08f8c3bb9a149a3975fd4403cc (diff)
Improve deadlock diagnostics (suppress stack trace, reword)
Diffstat (limited to 'libbuild2/utility.cxx')
-rw-r--r--libbuild2/utility.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/libbuild2/utility.cxx b/libbuild2/utility.cxx
index 396ce82..506e88e 100644
--- a/libbuild2/utility.cxx
+++ b/libbuild2/utility.cxx
@@ -69,6 +69,8 @@ namespace build2
//
// <libbuild2/utility.hxx>
//
+ void (*terminate) (bool);
+
process_path argv0;
const standard_version build_version (LIBBUILD2_VERSION_STR);
@@ -486,12 +488,13 @@ namespace build2
}
void
- init (const char* a0,
+ init (void (*t) (bool),
+ const char* a0,
bool kg, bool dr, optional<bool> mc,
optional<path> cs, optional<path> cg)
{
- // Build system driver process path.
- //
+ terminate = t;
+
argv0 = process::path_search (a0, true);
keep_going = kg;