Re: Tracing in the presence of forks.

2000-08-31 Thread Michael Elizabeth Chastain
> 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

Tracing in the presence of forks.

2000-08-31 Thread Tim Muir
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