Skip to content

Commit

Permalink
Get TestActiveSessions to pass
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Geltz <[email protected]>
Change-Id: I134557bb9d7447ec0c7a9be6e0dfc1d007753f35
  • Loading branch information
bgeltz authored and cmcantalupo committed Oct 3, 2023
1 parent 5699485 commit 479500b
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 24 deletions.
1 change: 1 addition & 0 deletions service/geopmdpy/system_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ def start_profile(self, client_pid, profile_name):
self.check_client_active(client_pid, 'start_profile')
if 'profile_name' in self._sessions[client_pid]:
raise RuntimeError(f'Client pid {client_pid} has requested profiling twice')
uid, gid, _ = self._pid_info(client_pid)
if len(self._profiles) == 0:
size = 64 * os.cpu_count()
shmem.create_prof('status', size, client_pid, uid, gid)
Expand Down
Loading

0 comments on commit 479500b

Please sign in to comment.