Let assume I have this code (it is incomplete):
pid = createChild(arguments, False, env)
dbg = PtraceDebugger()
process = dbg.addProcess(pid, is_attached)
process.cont()
There seems to be no way to handle the stderr and stdout, there are something called pass_fd in the createChild function, but there is no documentation (that I can find) how to do it, trying to use os.pipe() on it seems to not work os.read(..) seems to be blocked
Can you provide an example? or direct me in the right way?
Let assume I have this code (it is incomplete):
There seems to be no way to handle the stderr and stdout, there are something called
pass_fdin the createChild function, but there is no documentation (that I can find) how to do it, trying to useos.pipe()on it seems to not workos.read(..)seems to be blockedCan you provide an example? or direct me in the right way?