mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix missing lock in kernel descriptor fork.
This commit is contained in:
parent
5589085084
commit
d068a352f7
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2012, 2013, 2014.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2012, 2013, 2014, 2015.
|
||||
|
||||
This file is part of Sortix.
|
||||
|
||||
|
@ -171,6 +171,7 @@ int Descriptor::GetFlags()
|
|||
|
||||
Ref<Descriptor> Descriptor::Fork()
|
||||
{
|
||||
ScopedLock lock(¤t_offset_lock);
|
||||
Ref<Descriptor> ret(new Descriptor(vnode, dflags));
|
||||
if ( !ret )
|
||||
return Ref<Descriptor>();
|
||||
|
|
Loading…
Add table
Reference in a new issue