Kernel: Default initialize flock as unlocked
This caused unlocked flock's to hang on lock
This commit is contained in:
parent
b822d42889
commit
7367672570
|
|
@ -74,8 +74,8 @@ namespace Kernel
|
||||||
|
|
||||||
struct flock_t
|
struct flock_t
|
||||||
{
|
{
|
||||||
bool locked;
|
bool locked { false };
|
||||||
bool shared;
|
bool shared { false };
|
||||||
ThreadBlocker thread_blocker;
|
ThreadBlocker thread_blocker;
|
||||||
BAN::HashSet<pid_t> lockers;
|
BAN::HashSet<pid_t> lockers;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue