From e0ab051c2958e637b12b3a889be3f0f7601820a3 Mon Sep 17 00:00:00 2001 From: flaskfarm Date: Fri, 14 Oct 2022 15:02:40 +0900 Subject: [PATCH] update --- lib/framework/version.py | 2 +- lib/support/base/subprocess.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/framework/version.py b/lib/framework/version.py index 06ce668..a1e11a3 100644 --- a/lib/framework/version.py +++ b/lib/framework/version.py @@ -1 +1 @@ -VERSION="4.0.0" \ No newline at end of file +VERSION="4.0.1" \ No newline at end of file diff --git a/lib/support/base/subprocess.py b/lib/support/base/subprocess.py index 39e7e06..12c1371 100644 --- a/lib/support/base/subprocess.py +++ b/lib/support/base/subprocess.py @@ -132,15 +132,15 @@ class SupportSubprocess(object): self.process = subprocess.Popen(self.command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, shell=self.shell, env=self.env, encoding='utf8') else: if self.uid == None: - process = subprocess.Popen(self.command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, shell=self.shell, env=self.env, encoding='utf8') + self.process = subprocess.Popen(self.command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, shell=self.shell, env=self.env, encoding='utf8') else: - process = subprocess.Popen(self.command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, shell=self.shell, env=self.env, preexec_fn=demote(self.uid, self.gid), encoding='utf8') + self.process = subprocess.Popen(self.command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, shell=self.shell, env=self.env, preexec_fn=demote(self.uid, self.gid), encoding='utf8') SupportSubprocess.instance_list.append(self) self.start_communicate() self.start_send_callback() if self.process is not None: self.process.wait() - logger.info(f"{self.command} 정상 종료") + logger.info(f"{self.command} END") except Exception as e: logger.error(f'Exception:{str(e)}') logger.error(traceback.format_exc())