Skip to content

Commit

Permalink
Fix sec issues
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Oct 11, 2022
1 parent cc48bad commit f6cee9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion im_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def get_childs(parent_id=None):
if parent_id is None:
parent_id = os.getpid()
ps_command = subprocess.Popen(["ps", "-o", "pid", "--ppid", str(parent_id), "--noheaders"],
stdout=subprocess.PIPE)
stdout=subprocess.PIPE)
ps_command.wait()
ps_output = str(ps_command.stdout.read())
childs = ps_output.strip().split("\n")[:-1]
Expand Down

0 comments on commit f6cee9c

Please sign in to comment.