Re: Bad file descriptor

2014-11-14 Thread Cameron Simpson
On 13Nov2014 15:40, satishmlm...@gmail.com wrote: import os os.write(1, b'Hello descriptor world\n') OSError: Bad file descriptor How to give a file descriptor number to this function? How to get a file descriptor number? Wow, this must be at least the 4th post of the same question. It now o

Re: Bad file descriptor

2014-11-13 Thread Mark Lawrence
On 13/11/2014 23:40, satishmlm...@gmail.com wrote: import os os.write(1, b'Hello descriptor world\n') OSError: Bad file descriptor How to give a file descriptor number to this function? How to get a file descriptor number? I suggest getting your cheque book out and paying for the advice you

Re: Bad file descriptor

2014-11-13 Thread Roy Smith
In article , Ben Finney wrote: > satishmlm...@gmail.com writes: > > > import os > > os.write(1, b'Hello descriptor world\n') > > OSError: Bad file descriptor > > It works fine for me:: > > >>> import os > >>> os.write(1, b'Hello descriptor world\n') > Hello descriptor world >

Re: Bad file descriptor

2014-11-13 Thread Ben Finney
satishmlm...@gmail.com writes: > import os > os.write(1, b'Hello descriptor world\n') > OSError: Bad file descriptor It works fine for me:: >>> import os >>> os.write(1, b'Hello descriptor world\n') Hello descriptor world 23 You don't say which Python, or which version, you're u

Re: Bad file descriptor

2014-11-13 Thread sohcahtoa82
On Thursday, November 13, 2014 3:40:50 PM UTC-8, satish...@gmail.com wrote: > import os > os.write(1, b'Hello descriptor world\n') > OSError: Bad file descriptor > > How to give a file descriptor number to this function? How to get a file > descriptor number? http://bit.ly/1zRWHyq -- https://ma

Re: "Bad file descriptor" in HTTPServer using Multiprocessing.

2010-01-15 Thread Adam Tauno Williams
On Sun, 2010-01-10 at 14:45 -0500, Adam Tauno Williams wrote: > I have a Python multiprocessing application where a master process > starts server sub-processes and communicates with them via Pipes; that > works very well. But one of the subprocesses, in turn, starts a > collection of HTTPServer