Skip to content

Commit

Permalink
Fix pid typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nythepegasus authored Mar 28, 2024
1 parent b7224df commit 8a0af2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SideJITServer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def enable_jit(self, name: str):
(host, port) = \
self.handle.service.address[0], self.handle.get_service_port('com.apple.internal.dt.remote.debugproxy')

pid = self.launch_app(app.bundle, True)
app.pid = self.launch_app(app.bundle, True)

s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
logging.info(f"Connecting to [{host}]:{port}")
Expand All @@ -89,7 +89,7 @@ def enable_jit(self, name: str):
logging.info(f"SetDetachOnError: {s.recv(8).decode()}")

logging.info(f"Attaching to process {pid}..")
s.sendall(f'$vAttach;{pid:x}#38'.encode())
s.sendall(f'$vAttach;{app.pid:x}#38'.encode())
out = s.recv(16).decode()
logging.info(f"Attach: {out}")

Expand Down

0 comments on commit 8a0af2e

Please sign in to comment.