From d7a96e92d93c2096de3ae80b3e74ed64f7d933ec Mon Sep 17 00:00:00 2001 From: rob Date: Sun, 18 Nov 2007 02:26:44 +0000 Subject: [PATCH] actually allocate the file descriptors we use git-svn-id: https://svn.aros.org:8080/svn/aros/trunk/AROS@27244 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- compiler/clib/pipe.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/clib/pipe.c b/compiler/clib/pipe.c index 1d7d667c3..dab1f0fa0 100644 --- a/compiler/clib/pipe.c +++ b/compiler/clib/pipe.c @@ -38,14 +38,13 @@ int pipe(int *pipedes) return -1; } - pipedes[0] = __getfirstfd(0); - pipedes[1] = __getfirstfd(pipedes[0]); - + pipedes[0] = __getfdslot(__getfirstfd(0)); rdesc->fh = reader; rdesc->flags = O_RDONLY; rdesc->opencount = 1; __setfdesc(pipedes[0], rdesc); + pipedes[1] = __getfdslot(__getfirstfd(pipedes[0])); wdesc->fh = writer; wdesc->flags = O_WRONLY; wdesc->opencount = 1; -- 2.11.4.GIT