From: rsc Date: Thu, 7 Sep 2006 14:38:56 +0000 (+0000) Subject: fix pipe bug X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=70c3260dc40460bf2d893812c1dde5261e6327ba;p=xv6-public fix pipe bug --- diff --git a/sysfile.c b/sysfile.c index 912ca7f..b45032e 100644 --- a/sysfile.c +++ b/sysfile.c @@ -71,6 +71,8 @@ sys_pipe(void) fileclose(wf); return -1; } + fd[0] = fd0; + fd[1] = fd1; return 0; }