From 17c1631186ddd0227bc3247a084cac723b810675 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Fri, 7 Aug 2009 19:40:22 -0700 Subject: [PATCH] Maintainer scripts may not have a controlling terminal Maintainer scripts are no longer guaranteed to have a controlling terminal and may not be able to interact with the user. If debconf is used to prompt, maintainer scripts may assume that it will handle the fallback to noninteractive defaults. --- policy.sgml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/policy.sgml b/policy.sgml index 27deaa7..bf99884 100644 --- a/policy.sgml +++ b/policy.sgml @@ -3529,15 +3529,17 @@ Package: libc6 Controlling terminal for maintainer scripts

- The maintainer scripts are guaranteed to run with a - controlling terminal and can interact with the user. - Because these scripts may be executed with standard output - redirected into a pipe for logging purposes, Perl scripts - should set unbuffered output by setting $|=1 so - that the output is printed immediately rather than being - buffered. + Maintainer scripts are not guaranteed to run with a controlling + terminal and may not be able to interact with the user. They + must be able to fall back to noninteractive behavior if no + controlling terminal is available. Maintainer scripts that + prompt via a program conforming to the Debian Configuration + Management Specification (see ) may + assume that program will handle falling back to noninteractive + behavior.

+ Exit status @@ -9397,9 +9399,9 @@ END-INFO-DIR-ENTRY

- The maintainer scripts are guaranteed to run with a - controlling terminal and can interact with the user. - See . + The maintainer scripts are not guaranteed to run with a + controlling terminal and may not be able to interact with + the user. See .

-- 2.39.5