> Is there any mechanism to automatically stop a process created
> by a traced parent preventing this race condition from occurring ?
Yeah, use ptrace to stop on every child system call. When the child
calls fork(), then change its memory at the return instruction to
"jmp ." instruction. Then t
When a process (traced using the ptrace call) forks, the tracing process
cannot keep track of the first few system calls executed by the child
process as the child may be scheduled to run before it can be safely
attached.
Is there any mechanism to automatically stop a process created
by a traced
2 matches
Mail list logo