Skip to content

Commit

Permalink
Fix the shared memory cleaning script (#4369) (#4425)
Browse files Browse the repository at this point in the history
Fix the invalid regular expression that leads to skipping the processing of shared lock files.

Signed-off-by: Artem Shumov <agshumov@sberautotech.ru>
(cherry picked from commit 8c3e3b3)

Co-authored-by: Artem Shumov <agshumov@sberautotech.ru>
  • Loading branch information
mergify[bot] and shumov-ag authored Feb 24, 2024
1 parent ebe680c commit ff3d96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/fastdds/shm/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __clean_zombie_segments(self):
The deleted file names
"""
segment_lock_re = re.compile('^fastrtps_(\\d|[a-z]){16}_el|_sl')
segment_lock_re = re.compile('^fastrtps_(\\d|[a-z]){16}(_el|_sl)')

# Each segment has an "_el" lock file that is locked if the segment
# is open and the owner process is alive
Expand Down Expand Up @@ -123,7 +123,7 @@ def __clean_zombie_ports(self):
the deleted file names
"""
port_lock_re = re.compile('^fastrtps_port\\d{,5}_el|_sl')
port_lock_re = re.compile('^fastrtps_port\\d{,5}(_el|_sl)')
# Each port has an "_el | _sl" lock file that is locked if the port
# is open and the owner process is alive
port_locks = [
Expand Down

0 comments on commit ff3d96c

Please sign in to comment.