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
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
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
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
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