Skip to content

Commit

Permalink
Merge pull request #1108 from no92/econnrefused
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 authored Aug 13, 2024
2 parents 3069ad8 + cb862c0 commit 2002916
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sysdeps/managarm/generic/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ int sys_connect(int fd, const struct sockaddr *addr_ptr, socklen_t addr_length)
return ENOENT;
} else if(resp.error() == managarm::fs::Errors::ILLEGAL_ARGUMENT) {
return EINVAL;
} else if(resp.error() == managarm::fs::Errors::CONNECTION_REFUSED) {
return ECONNREFUSED;
}

__ensure(resp.error() == managarm::fs::Errors::SUCCESS);
Expand Down

0 comments on commit 2002916

Please sign in to comment.