0

[py]: use self.process and self.path correctly in the base service class

NOKEYCHECK=True
GitOrigin-RevId: 118f449a177bd74cb9371131b51fa2a7f86ee133
This commit is contained in:
symonk
2022-10-09 10:01:47 +01:00
committed by Copybara-Service
parent dfb71ae718
commit b92600d913

@@ -90,7 +90,7 @@ class Service(ABC):
try:
cmd = [self.path]
cmd.extend(self.command_line_args())
child_process = self.process = subprocess.Popen(
self.process = subprocess.Popen(
cmd,
env=self.env,
close_fds=system() != "Windows",
@@ -99,7 +99,7 @@ class Service(ABC):
stdin=PIPE,
creationflags=self.creation_flags,
)
log.debug(f"Started executable: `{self.process}` in a child process with pid: {child_process.pid}")
log.debug(f"Started executable: `{self.path}` in a child process with pid: {self.process.pid}")
except TypeError:
raise
except OSError as err: