Skip to content

Commit 2baaf7c

Browse files
authored
Run the archive command through exec (#113)
* Run the archive command through exec * Invoke exec only on Linux
1 parent 6b15b7b commit 2baaf7c

File tree

1 file changed

+5
-1
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+5
-1
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,11 @@ def set_archiving(
663663
if custom_archive_command is None:
664664
archive_command = " ".join([f'"{init_params.probackup_path}"',
665665
'archive-push', *self.backup_dir.pb_args])
666-
if os.name == "nt":
666+
if os.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+
elif os.name == "nt":
667671
archive_command = archive_command.replace("\\", "\\\\")
668672
archive_command += f' --instance={instance}'
669673

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy