summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-06-24 13:12:41 +0000
committerNiels Thykier <niels@thykier.net>2017-06-24 13:12:42 +0000
commite8f95e5183c34809d991eacb546fff26400afb4a (patch)
tree1f442713e5c112196eaa989391446b7e7a9bb79d /doc
parentbef90b938018538b6680d5fc11378e4bff1a109c (diff)
downloaddebhelper-e8f95e5183c34809d991eacb546fff26400afb4a.tar.gz
PROGRAMMING: Document error handling in parallel runs
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/PROGRAMMING4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING
index 5d1b6220..43f68c61 100644
--- a/doc/PROGRAMMING
+++ b/doc/PROGRAMMING
@@ -377,6 +377,10 @@ on_selected_pkgs_in_parallel($pkg_list_ref, $code)
}
});
+ If there is an error, which should stop the build, please invoke
+ either "error()" or "error_exitcode". Alternatively, a trappable
+ error (e.g. "die($msg)") can also be used.
+
Keep in mind that the sub will always be run in a subprocess,
so it cannot update global state.