Skip to content

Commit

Permalink
fix printing of stray pid command lines
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed May 24, 2024
1 parent 0f61e38 commit e6738cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sarracenia/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ def sanity(self):
if len(self.strays) > 0:
print('killing strays...')
for pid in self.strays:
print( f"pid: {pid} \"{' '.join(self.strays[pid])}\" does not match any configured instance, sending it TERM" )
print( f"pid: {pid} \"{self.strays[pid]}\" does not match any configured instance, sending it TERM" )
if not self.options.dry_run:
signal_pid(pid, signal.SIGTERM)
else:
Expand Down Expand Up @@ -2249,7 +2249,7 @@ def stop(self):
pids_signalled=set([])

for pid in self.strays:
print( f"pid: {pid} \"{' '.join(self.strays[pid])}\" does not match any configured instance, killing" )
print( f"pid: {pid} \"{self.strays[pid]}\" does not match any configured instance, killing" )
signal_pid(pid, signal.SIGTERM)
pids_signalled |= set([pid])

Expand Down Expand Up @@ -2338,7 +2338,7 @@ def stop(self):
print('.', end='')

for pid in self.strays:
print( f"pid: {pid} \"{' '.join(self.strays[pid])}\" does not match any configured instance, killing" )
print( f"pid: {pid} \"{self.strays[pid]}\" does not match any configured instance, killing" )
signal_pid(pid, signal.SIGKILL)
pids_signalled |= set([pid])

Expand Down

0 comments on commit e6738cb

Please sign in to comment.