This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=4b4f8ed22ad6e5b90a52593715897910d2bdfb85

commit 4b4f8ed22ad6e5b90a52593715897910d2bdfb85
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Oct 11 22:00:36 2018 +0200

    s-s-d: Print complete verbose lines
    
    Do not split the lines in multiple stages, as that messes up the output
    in case we want to print something in-between, and makes the standard
    line buffered output for stdout not flush the output which gets
    duplicated on the child.
---
 debian/changelog          | 2 ++
 utils/start-stop-daemon.c | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index eb301b218..7d905e0ed 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ dpkg (1.19.3) UNRELEASED; urgency=medium
     Prompted by Johannes Schauer <[email protected]>.
   * start-stop-daemon: Check whether standalone --pidfile use is secure.
     Prompted by Michael Orlitzky <[email protected]>.
+  * start-stop-daemon: Print complete verbose lines, instead of partial lines
+    with no newlines and a final print with a newline.
   * Perl modules:
     - Dpkg::Changelog::Debian: Preserve modelines at EOF. Closes: #916056
       Thanks to Chris Lamb <[email protected]> for initial test cases.
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index d4d30fbbb..a5b00f5e0 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -515,7 +515,7 @@ daemonize(void)
        sigset_t oldmask;
 
        if (quietmode < 0)
-               printf("Detaching to start %s...", startas);
+               printf("Detaching to start %s...\n", startas);
 
        /* Block SIGCHLD to allow waiting for the child process while it is
         * performing actions, such as creating a pidfile. */
@@ -560,7 +560,7 @@ daemonize(void)
                fatal("cannot restore signal mask");
 
        if (quietmode < 0)
-               printf("done.\n");
+               printf("Detaching complete...\n");
 }
 
 static void

-- 
Dpkg.Org's dpkg

Reply via email to