From: rsc Date: Thu, 7 Sep 2006 14:38:56 +0000 (+0000) Subject: fix pipe bug X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=70c3260dc40460bf2d893812c1dde5261e6327ba;p=cs3210-lab0.git 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; }