diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-04-12 17:09:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-04-12 17:09:35 +0200 |
commit | ce4848cfaaa569da3e11de51f4174eb21709b9b9 (patch) | |
tree | dd9918fd6b769591912c4e6dbbb05ac73364035b /libbuild2/script/script.hxx | |
parent | 33be784e4b991a95d3ef14a6ef555f1299ec7021 (diff) |
Add -s|--timeout-success option to env script builtin
The semantics is equivalent to the --success option we already have in the
timeout builtin.
Diffstat (limited to 'libbuild2/script/script.hxx')
-rw-r--r-- | libbuild2/script/script.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libbuild2/script/script.hxx b/libbuild2/script/script.hxx index cccad98..c406165 100644 --- a/libbuild2/script/script.hxx +++ b/libbuild2/script/script.hxx @@ -331,9 +331,13 @@ namespace build2 process_path program; strings arguments; - optional<dir_path> cwd; // From env builtin. - environment_vars variables; // From env builtin. - optional<duration> timeout; // From env builtin. + + // These come from the env builtin. + // + optional<dir_path> cwd; + environment_vars variables; + optional<duration> timeout; + bool timeout_success; optional<redirect> in; optional<redirect> out; |