mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where backup does not work due to parameter 'preexec_fn' no longer being supported. Fixes #7580
This commit is contained in:
committed by
Akshay Joshi
parent
5625fe0969
commit
9a317f3ba6
@@ -266,6 +266,8 @@ class BatchProcess(object):
|
||||
interpreter = self.get_windows_interpreter(paths)
|
||||
else:
|
||||
interpreter = sys.executable
|
||||
if interpreter.endswith('uwsgi'):
|
||||
interpreter = interpreter.split('uwsgi')[0] + 'python'
|
||||
|
||||
return interpreter if interpreter else 'python'
|
||||
|
||||
@@ -335,7 +337,7 @@ class BatchProcess(object):
|
||||
else:
|
||||
p = Popen(
|
||||
cmd, close_fds=True, stdout=None, stderr=None, stdin=None,
|
||||
preexec_fn=self.preexec_function, env=env
|
||||
start_new_session=True, env=env
|
||||
)
|
||||
|
||||
self.ecode = p.poll()
|
||||
@@ -371,7 +373,7 @@ class BatchProcess(object):
|
||||
"""
|
||||
p = Popen(
|
||||
cmd, close_fds=True, stdout=PIPE, stderr=PIPE, stdin=None,
|
||||
preexec_fn=self.preexec_function, env=env
|
||||
start_new_session=True, env=env
|
||||
)
|
||||
|
||||
output, errors = p.communicate()
|
||||
|
||||
Reference in New Issue
Block a user