mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Work around sync on close bottleneck.
This commit is contained in:
parent
74fe008001
commit
9d3aecfa07
1 changed files with 5 additions and 1 deletions
|
@ -124,7 +124,11 @@ int sys_close(int fd)
|
|||
dtable.Reset();
|
||||
if ( !desc )
|
||||
return -1;
|
||||
return desc->sync(&ctx);
|
||||
// TODO: This can be a significant bottleneck. All we need to do is ask the
|
||||
// filesystem for whether any errors occurred that should be reported
|
||||
// at close time.
|
||||
//return desc->sync(&ctx);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int sys_closefrom(int fd)
|
||||
|
|
Loading…
Reference in a new issue