summaryrefslogtreecommitdiff
path: root/solter.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2020-10-14 20:32:21 +0200
committerOlivier Gayot <olivier.gayot@sigexec.com>2020-10-14 20:33:28 +0200
commit2970aa61feddd11c9b4421cc8a5e31e8ad31ef10 (patch)
treeccc28828641df4201e6e691b6b39099f3db0afd7 /solter.py
parentc56e0b5feea6450fe33339fb7d82ad2ef62f0284 (diff)
Fix send function after failing test
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'solter.py')
-rwxr-xr-xsolter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/solter.py b/solter.py
index 10e9bb6..262e34a 100755
--- a/solter.py
+++ b/solter.py
@@ -44,7 +44,7 @@ def get_commands_send_data(sockfd: int, data: str, **kwargs):
if '"' in data or "\n" in data:
raise ValueError("Double-quotes and newlines are not supported")
- return [f'call (int)send({sockfd}, "{data}", {len(data)}, {MSG_NOSIGNAL})']
+ return [f'call (int)send({sockfd}, "{data}", {len(data)}, {hex(MSG_NOSIGNAL)})']
def get_commands_enable_keepalive(**kwargs):