Re: [9fans] ratrace problem; debuggers welcome

2011-02-13 Thread erik quanstrom
> > at least from the source i have, writing to p->hang after > > the fork isn't going to do anything.  p->hang is only consulted > > in sysexec.  i think you need to add the same test in sysfork. > > It is only supposed to be consulted in sysexec. Hang just means that > the next exec will result

Re: [9fans] ratrace problem; debuggers welcome

2011-02-13 Thread ron minnich
On Sun, Feb 13, 2011 at 7:50 PM, erik quanstrom wrote: > at least from the source i have, writing to p->hang after > the fork isn't going to do anything.  p->hang is only consulted > in sysexec.  i think you need to add the same test in sysfork. It is only supposed to be consulted in sysexec. Ha

Re: [9fans] ratrace problem; debuggers welcome

2011-02-13 Thread erik quanstrom
On Sun Feb 13 19:34:25 EST 2011, rminn...@gmail.com wrote: > there's a race in ratrace: programs can escape. The reason is that the > parent forks a child and writes stop to its ctl file. But the child > can run any number of system calls -- even to completion -- before the > parent writes that sto

[9fans] ratrace problem; debuggers welcome

2011-02-13 Thread ron minnich
there's a race in ratrace: programs can escape. The reason is that the parent forks a child and writes stop to its ctl file. But the child can run any number of system calls -- even to completion -- before the parent writes that stop command. I'm seeing this on arm. The fix is simple, in the child