mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Kernel: Allow negative value for backlog in sys$listen
This commit is contained in:
parent
a6fde58682
commit
6d31d81309
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ ErrorOr<FlatPtr> Process::sys$listen(int sockfd, int backlog)
|
|||
{
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
if (backlog < 0)
|
||||
return EINVAL;
|
||||
backlog = 0;
|
||||
auto description = TRY(open_file_description(sockfd));
|
||||
if (!description->is_socket())
|
||||
return ENOTSOCK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue