Re: closing stdin, stdout and stderr

2005-12-27 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Martijn Brouwer <[EMAIL PROTECTED]> wrote: ... > I read this one, which was the reason that I tried os.close instead of > sys.stdXXX.close(). But I would like to know why it does not close a > file discriptor is I call its close method(). They're special. I suppos

Re: closing stdin, stdout and stderr

2005-12-26 Thread Martijn Brouwer
On Mon, 2005-12-26 at 23:15 +, Robin Becker wrote: > Robin Becker wrote: > > Martijn Brouwer wrote: > > > >> I am writing a unix daemon in python, so I want to close stdin, stdout > >> and stderr. > >> My first attempt was to the standard file descriptors using their > >> close() methods. Afte

Re: closing stdin, stdout and stderr

2005-12-26 Thread Martijn Brouwer
On Mon, 2005-12-26 at 23:13 +, Robin Becker wrote: > Martijn Brouwer wrote: > > I am writing a unix daemon in python, so I want to close stdin, stdout > > and stderr. > > My first attempt was to the standard file descriptors using their > > close() methods. After closing stdout, I could not pri

Re: closing stdin, stdout and stderr

2005-12-26 Thread Robin Becker
Robin Becker wrote: > Martijn Brouwer wrote: > >> I am writing a unix daemon in python, so I want to close stdin, stdout >> and stderr. >> My first attempt was to the standard file descriptors using their >> close() methods. After closing stdout, I could not print anymore, so >> this seemed to wor

Re: closing stdin, stdout and stderr

2005-12-26 Thread Robin Becker
Martijn Brouwer wrote: > I am writing a unix daemon in python, so I want to close stdin, stdout > and stderr. > My first attempt was to the standard file descriptors using their > close() methods. After closing stdout, I could not print anymore, so > this seemed to work. However, later I noticed th