Skip to content

Commit

Permalink
cmd_pstrap: open subprocess output in text mode
Browse files Browse the repository at this point in the history
- GH #30
  • Loading branch information
miconda committed Nov 11, 2024
1 parent 3115f77 commit ae15499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kamcli/commands/cmd_pstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def cli(ctx, all, sysps):
ctx.printf("Trapping Kamailio processes with gdb. It can take a while.")

child = subprocess.Popen(
["pgrep", "kamailio"], stdout=subprocess.PIPE, shell=False
["pgrep", "kamailio"], stdout=subprocess.PIPE, shell=False, text=True
)
response = child.communicate()[0]
if len(response) > 0:
Expand Down

0 comments on commit ae15499

Please sign in to comment.