diff options
-rw-r--r-- | docs/ChangeLog | 4 | ||||
-rw-r--r-- | lib/pipeline.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/ChangeLog b/docs/ChangeLog index c00e8a3a..07936bb5 100644 --- a/docs/ChangeLog +++ b/docs/ChangeLog @@ -1,3 +1,7 @@ +Sun Sep 21 02:17:43 BST 2003 Colin Watson <cjwatson@debian.org> + + * lib/pipeline.c (pipeline_start): Dump pipeline in debugging mode. + Sun Sep 21 02:15:17 BST 2003 Colin Watson <cjwatson@debian.org> * docs/NEWS: Add a forgotten entry for 2.4.2. diff --git a/lib/pipeline.c b/lib/pipeline.c index 53d3def3..ac2e987b 100644 --- a/lib/pipeline.c +++ b/lib/pipeline.c @@ -511,6 +511,11 @@ void pipeline_start (pipeline *p) assert (!p->pids); /* pipeline not started already */ assert (!p->statuses); + if (debug) { + fputs ("Starting pipeline: ", stderr); + pipeline_dump (p, stderr); + } + /* Add to the table of active pipelines, so that signal handlers * know what to do with exit statuses. Block SIGCHLD so that we can * do this safely. |