Skip to content

Commit ae15499

Browse files
committed
cmd_pstrap: open subprocess output in text mode
- GH #30
1 parent 3115f77 commit ae15499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kamcli/commands/cmd_pstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def cli(ctx, all, sysps):
5757
ctx.printf("Trapping Kamailio processes with gdb. It can take a while.")
5858

5959
child = subprocess.Popen(
60-
["pgrep", "kamailio"], stdout=subprocess.PIPE, shell=False
60+
["pgrep", "kamailio"], stdout=subprocess.PIPE, shell=False, text=True
6161
)
6262
response = child.communicate()[0]
6363
if len(response) > 0:

0 commit comments

Comments
 (0)