[plug] python head+wall issue

James Devenish devenish at guild.uwa.edu.au
Mon Dec 29 20:06:17 WST 2003


Hi,

In message <3FF015C4.9050406 at postnewspapers.com.au>
on Mon, Dec 29, 2003 at 07:53:40PM +0800, Craig Ringer wrote:
> fstat64(3, {st_mode=S_IFREG|0664, st_size=40, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
> 0) = 0xbf335000
> _llseek(3, 0, [0], SEEK_CUR)            = 0
> ftruncate64(3, 0)                       = -1 EINVAL (Invalid argument)
> write(2, "Traceback (most recent call last"..., 35) = 35

The man page says "The fd references a socket, not a file." or "The fd
is not open for writing." When I move to other operating systems (and
either Python 2.1 or 2.2), I get "Bad file descriptor". Maybe "rw" is
not a valid combination in Python?





More information about the plug mailing list