diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-23 08:57:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-11-23 08:57:45 +0200 |
commit | c6b1d1dd870b3370d0a09fb4600e3a6b03326f35 (patch) | |
tree | f400b0d4a67bd1e067b545372e7742c5665f5caf /libbuild2/install/rule.cxx | |
parent | f19959de304afaff2b3d539c9bef1f493ede5fbd (diff) |
Rework diag_buffer interface to facilitate correct destruction order
Diffstat (limited to 'libbuild2/install/rule.cxx')
-rw-r--r-- | libbuild2/install/rule.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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, |