Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit177724b

Browse files
authored
Fix node.py: try_shutdown and cleanup (#145)
1 parent78603f8 commit177724b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎testgres/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def _try_shutdown(self, max_attempts, with_force=False):
351351
# If force stopping is enabled and PID is valid
352352
ifwith_forceandnode_pid!=0:
353353
# If we couldn't stop the node
354-
p_status_output=self.os_ops.exec_command(cmd=f'ps -p{node_pid}',shell=True).decode('utf-8')
354+
p_status_output=self.os_ops.exec_command(cmd=f'ps -o pid= -p{node_pid}',shell=True,ignore_errors=True).decode('utf-8')
355355
ifself.status()!=NodeStatus.Stoppedandp_status_outputandstr(node_pid)inp_status_output:
356356
try:
357357
eprint(f'Force stopping node{self.name} with PID{node_pid}')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp