On Nov 4, 2008, at 4:34 AM, erik quanstrom wrote:
So the question remains -- what is the proper way of putting a
process
that waits for an IO into a Stopped state?
i don't think it's possible without changing the kernel.
but it's a good question, why does it work this way?
obviously one doesn't want to stop a process and kernel work in
the middle of i/o. there may be locks involved, etc.
but one could easily check for Proc_stopme on syscall
exit.
does anyone remember the thinking that went into this?
I was waiting for somebody to chime in, but I guess no takers :-(
Well, one last thing to report before we put this thread to rest
would be the fact that acid(1) seems to be suffering from the
same issue. If the process is doing I/O I can't modify the variables.
Not a huge limitation, but a surprising one nonetheless if one
draws from experience of working with conventional debuggers.
Thanks,
Roman.