Skip to content

Commit

Permalink
replace wait() by communicate() to launch bindiff
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDavid committed Nov 8, 2023
1 parent 74f01a0 commit 87ca9a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindiff/bindiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def raw_diffing(p1_path: Union[Path, str], p2_path: Union[Path, str], out_diff:

logging.debug(f"run diffing: {' '.join(cmd_line)}")
process = subprocess.Popen(cmd_line, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
retcode = process.wait()
out, err = process.communicate()
retcode = process.returncode
if retcode != 0:
logging.error(f"differ terminated with error code: {retcode}")
return False
Expand Down

0 comments on commit 87ca9a9

Please sign in to comment.