aboutsummaryrefslogtreecommitdiff
path: root/butl/pager.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-10-21 20:02:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-10-24 11:27:19 +0300
commita128eb0961ccf820ff2142897795b48723d842bd (patch)
tree291351ef0ed9f428b3f5c8a1bf22483d3350bc15 /butl/pager.cxx
parent070d99ca6d714e8789e67e2e797a1bf16ba35528 (diff)
Make process status optional
Diffstat (limited to 'butl/pager.cxx')
-rw-r--r--butl/pager.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/butl/pager.cxx b/butl/pager.cxx
index 3d429f5..b154a5c 100644
--- a/butl/pager.cxx
+++ b/butl/pager.cxx
@@ -28,6 +28,10 @@ namespace butl
bool verbose,
const string* pager,
const vector<string>* pager_options)
+ // Create successfully exited process. Will "wait" for it if fallback to
+ // non-interactive execution path.
+ //
+ : p_ (optional<process::status_type> (0))
{
// If we are using the default pager, try to get the terminal width
// so that we can center the output.