From c6b1d1dd870b3370d0a09fb4600e3a6b03326f35 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 23 Nov 2022 08:57:45 +0200 Subject: Rework diag_buffer interface to facilitate correct destruction order --- libbuild2/install/rule.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libbuild2/install') diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx index 36a06fa..8818ea3 100644 --- a/libbuild2/install/rule.cxx +++ b/libbuild2/install/rule.cxx @@ -1198,11 +1198,11 @@ namespace build2 print_diag ("uninstall -d", chd); } - diag_buffer dbuf (rs.ctx); process pr (run_start (pp, args, - 0 /* stdin */, - 1 /* stdout */, - dbuf.open (args[0]) /* stderr */)); + 0 /* stdin */, + 1 /* stdout */, + diag_buffer::pipe (rs.ctx) /* stderr */)); + diag_buffer dbuf (rs.ctx, args[0], pr); dbuf.read (); r = run_finish_code ( dbuf, -- cgit v1.1