From 5c9e9f732df6d95d712f25de9880b7461c53d6ca Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 30 Jun 2011 15:19:13 +0000 Subject: Add support for the `build-timeout' and `--timeout' options. --- doc/manual/conf-file.xml | 17 +++++++++++++++++ doc/manual/opt-common-syn.xml | 4 ++++ doc/manual/opt-common.xml | 10 ++++++++++ doc/manual/release-notes.xml | 10 ++++++++++ 4 files changed, 41 insertions(+) (limited to 'doc') diff --git a/doc/manual/conf-file.xml b/doc/manual/conf-file.xml index cb47b99418b6..44a7ac3885a8 100644 --- a/doc/manual/conf-file.xml +++ b/doc/manual/conf-file.xml @@ -134,6 +134,23 @@ env-keep-derivations = false + build-timeout + + + + This option defines the maximum number of seconds that a + builder can run. This is useful (for instance in a automated + build system) to catch builds that are stuck in an infinite loop + but keep writing to their standard output or standard error. It + can be overriden using the command line + switch. + + The value 0 means that there is no + timeout. This is also the default. + + + diff --git a/doc/manual/opt-common-syn.xml b/doc/manual/opt-common-syn.xml index da60288b2a19..23bd36dd6bf0 100644 --- a/doc/manual/opt-common-syn.xml +++ b/doc/manual/opt-common-syn.xml @@ -21,6 +21,10 @@ number + + + number + diff --git a/doc/manual/opt-common.xml b/doc/manual/opt-common.xml index 2d67162d7cad..e86e4b412581 100644 --- a/doc/manual/opt-common.xml +++ b/doc/manual/opt-common.xml @@ -132,6 +132,16 @@ + + + Sets the maximum number of seconds that a builder + can run. The default is specified by the build-timeout + configuration setting. 0 means no + timeout. + + + diff --git a/doc/manual/release-notes.xml b/doc/manual/release-notes.xml index 1e579a37b017..0c29cae90f9d 100644 --- a/doc/manual/release-notes.xml +++ b/doc/manual/release-notes.xml @@ -22,6 +22,16 @@ option. + + The option (corresponding to the + configuration setting build-timeout) allows you + to set an absolute timeout on builds — if a build runs for more than + the given number of seconds, it is terminated. This is useful for + recovering automatically from builds that are stuck in an infinite + loop but keep producing output, and for which + --max-silent-time is ineffective. + + -- cgit 1.4.1