浏览代码

cmd_pstrap: open subprocess output in text mode

- GH #30
Daniel-Constantin Mierla 10 月之前
父节点
当前提交
ae15499295
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kamcli/commands/cmd_pstrap.py

+ 1 - 1
kamcli/commands/cmd_pstrap.py

@@ -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: