Re: OT: processes, terminals and file descriptors on *nix

2011-03-16 Thread Alexander Kapps
On 13.03.2011 01:50, Nobody wrote: I don't have any links. If you want to understand the core Unix API, the best reference I know of is Stevens ("Advanced Programming in the Unix Environment", by W. Richard Stevens). Unfortunately, it's not cheap. In spite of the title, it doesn't assume any pr

Re: OT: processes, terminals and file descriptors on *nix (was: Re: attach to process by pid?)

2011-03-12 Thread Nobody
On Sat, 12 Mar 2011 00:49:08 +0100, Alexander Kapps wrote: > I still try to digest your explanations. I thought, that processes > just do something like dup()'ing the file descriptors of their > terminal but after some strace experiments, I think that is totally > wrong. Actually, the way that

Re: OT: processes, terminals and file descriptors on *nix (was: Re: attach to process by pid?)

2011-03-11 Thread Dan Stromberg
On Fri, Mar 11, 2011 at 3:49 PM, Alexander Kapps wrote: > On 11.03.2011 03:18, Nobody wrote: > >> On Thu, 10 Mar 2011 23:55:51 +0100, Alexander Kapps wrote: >> >> I think he wants to attach to another process's stdin/stdout and > read/write from/to them. > I don't know if this is possibl

OT: processes, terminals and file descriptors on *nix (was: Re: attach to process by pid?)

2011-03-11 Thread Alexander Kapps
On 11.03.2011 03:18, Nobody wrote: On Thu, 10 Mar 2011 23:55:51 +0100, Alexander Kapps wrote: I think he wants to attach to another process's stdin/stdout and read/write from/to them. I don't know if this is possible but it would be a great addition for psutil. It's not even a meaningful conc