33
33
:return: a tuple: function-result, a StraceResult.
35
35
# capture strace output to a file
37
37
log_file_fd = log_file.fileno()
40
40
proc = subprocess.Popen(['strace',
41
'-f', '-r', '-tt', '-p', str(pid),
41
'-f', '-r', '-tt', '-p', str(pid), '-o', log_file.name
47
48
result = function(*args, **kwargs)
49
50
os.kill(proc.pid, signal.SIGQUIT)