Skip to content

Commit

Permalink
ipc: bug fix in socket creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Sep 7, 2024
1 parent 6e4bedc commit 1e513de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipc/sockinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ int socket(Thread *t, int domain, int type, int protocol) {

if(!p) return -ESRCH;
if(p->iodCount == MAX_IO_DESCRIPTORS) return -EMFILE;
if(socket >= MAX_SOCKETS) return -ENFILE;
if(socketCount >= MAX_SOCKETS) return -ENFILE;

acquireLockBlocking(&lock);

Expand Down

0 comments on commit 1e513de

Please sign in to comment.