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

Commit2a3901e

Browse files
committed
Invoke exec only on Linux
1 parent3c4b89c commit2a3901e

File tree

1 file changed

+6
-2
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+6
-2
lines changed

‎testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,13 @@ def set_archiving(
661661
options['archive_mode']='on'
662662

663663
ifcustom_archive_commandisNone:
664-
archive_command=" ".join(['exec',f'"{init_params.probackup_path}"',
664+
archive_command=" ".join([f'"{init_params.probackup_path}"',
665665
'archive-push',*self.backup_dir.pb_args])
666-
ifos.name=="nt":
666+
ifos.name=='posix':
667+
# Dash produces a core dump when it gets a SIGQUIT from its
668+
# child process so replace the shell with pg_probackup
669+
archive_command='exec '+archive_command
670+
elifos.name=="nt":
667671
archive_command=archive_command.replace("\\","\\\\")
668672
archive_command+=f' --instance={instance}'
669673

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp