fileincref -> filedup (consistent with idup)
This commit is contained in:
parent
7895178df3
commit
1ccff18b24
4 changed files with 9 additions and 9 deletions
|
|
@ -83,7 +83,7 @@ sys_dup(void)
|
|||
return -1;
|
||||
if((fd=fdalloc(f)) < 0)
|
||||
return -1;
|
||||
fileincref(f);
|
||||
filedup(f);
|
||||
return fd;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue