From ce4848cfaaa569da3e11de51f4174eb21709b9b9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 12 Apr 2024 17:09:35 +0200 Subject: Add -s|--timeout-success option to env script builtin The semantics is equivalent to the --success option we already have in the timeout builtin. --- libbuild2/script/script.hxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libbuild2/script/script.hxx') 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 cwd; // From env builtin. - environment_vars variables; // From env builtin. - optional timeout; // From env builtin. + + // These come from the env builtin. + // + optional cwd; + environment_vars variables; + optional timeout; + bool timeout_success; optional in; optional out; -- cgit v1.1