# locate the pid for the - expected - single child, that would be the init for that VM
#init_pid = int(open("/proc/%s/task/%s/children"%(driver_pid,driver_pid)).read().strip())
init_pid = int(os.popen('pgrep -P %s'%driver_pid).readlines()[0].strip())
# locate the pid for the - expected - single child, that would be the init for that VM
#init_pid = int(open("/proc/%s/task/%s/children"%(driver_pid,driver_pid)).read().strip())
init_pid = int(os.popen('pgrep -P %s'%driver_pid).readlines()[0].strip())