1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:38:11 +00:00

Kernel: Mark sys$listen() as not needing the big lock

This syscall already performs the necessary locking and so doesn't
need to rely on the process big lock.
This commit is contained in:
Andreas Kling 2022-04-03 22:22:22 +02:00
parent e103c5fe2d
commit 36d829b97c
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ ErrorOr<FlatPtr> Process::sys$bind(int sockfd, Userspace<sockaddr const*> addres
ErrorOr<FlatPtr> Process::sys$listen(int sockfd, int backlog)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
VERIFY_NO_PROCESS_BIG_LOCK(this)
if (backlog < 0)
return EINVAL;
auto description = TRY(open_file_description(sockfd));