fix pipe bug
This commit is contained in:
parent
bb207a1d42
commit
70c3260dc4
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ sys_pipe(void)
|
|||
fileclose(wf);
|
||||
return -1;
|
||||
}
|
||||
fd[0] = fd0;
|
||||
fd[1] = fd1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue