1 |
|
Mon Aug 4 00:31:44 BST 2003 Colin Watson <cjwatson@debian.org> |
2 |
|
|
3 |
|
Add support for getting stdio streams for input and output. Needs |
4 |
|
library support because pipeline_wait() needs to know to close the |
5 |
|
stream rather than the underlying file descriptor. |
6 |
|
|
7 |
|
* lib/pipeline.h (struct pipeline): New infile and outfile members. |
8 |
|
(pipeline_get_infile, pipeline_get_outfile): Add prototypes. |
9 |
|
* lib/pipeline.c (pipeline_new): Initialize infile and outfile. |
10 |
|
(pipeline_join): Likewise. |
11 |
|
(pipeline_get_infile, pipeline_get_outfile): New functions. |
12 |
|
(pipeline_wait): Check for infile and outfile and fclose() them in |
13 |
|
preference to close()ing infd and outfd. Check for errors on |
14 |
|
close(). |
15 |
|
|
16 |
Sun Aug 3 23:59:18 BST 2003 Colin Watson <cjwatson@debian.org> |
Sun Aug 3 23:59:18 BST 2003 Colin Watson <cjwatson@debian.org> |
17 |
|
|
18 |
* lib/pipeline.c (pipeline_start): Use dup2() instead of close() |
* lib/pipeline.c (pipeline_start): Use dup2() instead of close() |