diff options
Diffstat (limited to 'session.py')
-rw-r--r-- | session.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -100,10 +100,8 @@ class Session: self.ws_port = port_for.select_random() self.vnc_port = port_for.select_random() - # Use negative values to ensure we don't do something harmful - # to random processes - self.ws_pid = int("-" + random_digits(5)) - self.vnc_pid = int("-" + random_digits(5)) + self.ws_pid = int(random_digits(5)) + self.vnc_pid = int(random_digits(5)) # Create a temporary file to indicate that this process is still 'Running' filename = f"/tmp/rwa/{str(self.ws_port) + str(self.vnc_port) + str(self.ws_pid) + str(self.vnc_pid)}.lock" |