From 6d2818b4beec7f1d75da21272fc587a9c5669af3 Mon Sep 17 00:00:00 2001 From: elicn Date: Thu, 27 Jun 2024 17:28:49 +0300 Subject: [PATCH] Handle address in use errors --- qiling/os/posix/syscall/socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiling/os/posix/syscall/socket.py b/qiling/os/posix/syscall/socket.py index 12b579ca7..ea6ee93ba 100644 --- a/qiling/os/posix/syscall/socket.py +++ b/qiling/os/posix/syscall/socket.py @@ -443,7 +443,7 @@ def ql_syscall_bind(ql: Qiling, sockfd: int, addr: int, addrlen: int): try: sock.bind(dest) - except (ConnectionError, FileNotFoundError) as ex: + except (OSError, ConnectionError, FileNotFoundError) as ex: return -ex.errno return 0