Skip to content

Commit

Permalink
[core][fix] Wait after stdout/stderr has been read (#1963)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias authored Feb 29, 2024
1 parent 57a5a37 commit bf9bf8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fixcore/fixcore/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -3678,9 +3678,9 @@ async def create_backup(self, arg: Optional[str]) -> AsyncIterator[JsonElement]:
# fmt: on
stdout_b, stderr_b = await process.communicate()
maybe_proc = process
code = await process.wait()
stdout = stdout_b.decode() if stdout_b else ""
stderr = stderr_b.decode() if stderr_b else ""
code = await process.wait()

if code == 0:
log.debug(f"arangodump: out={stdout}, err={stderr}.")
Expand Down Expand Up @@ -3738,9 +3738,9 @@ async def restore_backup(self, backup_file: Optional[str], ctx: CLIContext) -> A
# fmt: on
stdout_b, stderr_b = await process.communicate()
maybe_proc = process
code = await process.wait()
stdout = stdout_b.decode() if stdout_b else ""
stderr = stderr_b.decode() if stderr_b else ""
code = await process.wait()

if code == 0:
log.debug(f"arangorestore: out={stdout}, err={stderr}.")
Expand Down

0 comments on commit bf9bf8b

Please sign in to comment.