mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-20 05:56:32 +00:00
new:在fork时拷贝signal和sighand (#91)
* refcount初始化 * new: 实现copy_sighand del: 删除sighand_struct的wqh, 待将来有需要时,替换成rust版本的 * new: 拷贝signal bugfix: 解决拷贝sighand时的uaf问题
This commit is contained in:
@ -28,3 +28,9 @@ pub fn spin_is_locked(lock: &spinlock_t) -> bool {
|
||||
|
||||
return if val == 0 { true } else { false };
|
||||
}
|
||||
|
||||
impl Default for spinlock_t {
|
||||
fn default() -> Self {
|
||||
Self { lock: 1 }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user