mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 18:26:48 +00:00
fix: socket shutdown wrong implement (#893)
This commit is contained in:
parent
f4acaec4ea
commit
09836e1b39
@ -345,7 +345,7 @@ impl Syscall {
|
||||
.get_socket(fd as i32)
|
||||
.ok_or(SystemError::EBADF)?;
|
||||
let mut socket = unsafe { socket.inner_no_preempt() };
|
||||
socket.shutdown(ShutdownType::from_bits_truncate(how as u8))?;
|
||||
socket.shutdown(ShutdownType::from_bits_truncate((how + 1) as u8))?;
|
||||
return Ok(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user