mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Mark sys$sendfd() and sys$recvfd() as not needing the big lock
These syscalls already perform the necessary locking and don't rely on the process big lock.
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Kernel {
|
||||
|
||||
ErrorOr<FlatPtr> Process::sys$sendfd(int sockfd, int fd)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this)
|
||||
TRY(require_promise(Pledge::sendfd));
|
||||
auto socket_description = TRY(open_file_description(sockfd));
|
||||
if (!socket_description->is_socket())
|
||||
@@ -31,7 +31,7 @@ ErrorOr<FlatPtr> Process::sys$sendfd(int sockfd, int fd)
|
||||
|
||||
ErrorOr<FlatPtr> Process::sys$recvfd(int sockfd, int options)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this)
|
||||
TRY(require_promise(Pledge::recvfd));
|
||||
auto socket_description = TRY(open_file_description(sockfd));
|
||||
if (!socket_description->is_socket())
|
||||
|
||||
Reference in New Issue
Block a user