forked from Bananymous/banan-os
Kernel: SYS_SYNC now schedules sync to happen soon
You can pass non-zero argument to the syscall to block until the sync has finished.
This commit is contained in:
@@ -185,7 +185,7 @@ namespace Kernel
|
||||
ret = Process::current().sys_stat((const char*)arg1, (struct stat*)arg2, (int)arg3);
|
||||
break;
|
||||
case SYS_SYNC:
|
||||
ret = Process::current().sys_sync();
|
||||
ret = Process::current().sys_sync((bool)arg1);
|
||||
break;
|
||||
case SYS_MMAP:
|
||||
ret = Process::current().sys_mmap((const sys_mmap_t*)arg1);
|
||||
|
||||
Reference in New Issue
Block a user