From 7e3092b83516e720ef367e8172421266078ee7e6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Aug 2019 08:27:11 +0200 Subject: Improve deadlock diagnostics (suppress stack trace, reword) --- libbuild2/utility.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libbuild2/utility.cxx') 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 // // // + 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 mc, optional cs, optional cg) { - // Build system driver process path. - // + terminate = t; + argv0 = process::path_search (a0, true); keep_going = kg; -- cgit v1.1