Skip to content

Commit

Permalink
Fix #678
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Oct 1, 2018
1 parent decf40f commit 628ac14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion IM/ansible_utils/ansible_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def teminate(self):

def _get_childs(self, parent_id=None):
if parent_id is None:
parent_id = os.getpid()
parent_id = self.pid
if parent_id is None:
return []
ps_command = subprocess.Popen("ps -o pid --ppid %d --noheaders" % parent_id, shell=True, stdout=subprocess.PIPE)
ps_command.wait()
ps_output = str(ps_command.stdout.read())
Expand Down

0 comments on commit 628ac14

Please sign in to comment.