diff options
author | Roger Leigh <rleigh@debian.org> | 2009-04-10 14:34:22 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2009-05-03 17:35:38 +0100 |
commit | 54c529d3bc4b6a922c0e62f36e960cfe66fc7adb (patch) | |
tree | 69abf0aa0ab9e4b3f79d2b7981ff17cdad492ae4 /sbuild/sbuild-run-parts.h | |
parent | f8b431d73a3621f4b0f07491f00557cc75744aaf (diff) | |
download | schroot-54c529d3bc4b6a922c0e62f36e960cfe66fc7adb.tar.gz |
[sbuild] run_parts: Log script output
Instead of leaving script stdout and stderr hooked up to our
stdout and stderr, attach them to pipes and read output via
poll and then log as info and error messages, respectively to
stderr.
This has the nice benefit of never writing to stdout when
--verbose is used, which could interfere with user programs
reading stdout.
Diffstat (limited to 'sbuild/sbuild-run-parts.h')
-rw-r--r-- | sbuild/sbuild-run-parts.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sbuild/sbuild-run-parts.h b/sbuild/sbuild-run-parts.h index 125d9864..7b5b6e62 100644 --- a/sbuild/sbuild-run-parts.h +++ b/sbuild/sbuild-run-parts.h @@ -1,4 +1,4 @@ -/* Copyright © 2005-2007 Roger Leigh <rleigh@debian.org> +/* Copyright © 2005-2009 Roger Leigh <rleigh@debian.org> * * schroot is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by @@ -43,7 +43,11 @@ namespace sbuild { CHILD_FORK, ///< Failed to fork child. CHILD_WAIT, ///< Wait for child failed. - EXEC ///< Failed to execute. + EXEC, ///< Failed to execute. + PIPE, ///< Failed to create pipe. + DUP, ///< Failed to duplicate file descriptor. + POLL, ///< Failed to poll file descriptor. + READ ///< Failed to read file descriptor. }; /// Exception type. |