__DATA__ and fcntl flags

2005-09-09 Thread Rafael Garcia-Suarez
In toke.c, in the part of code that sets the file descriptor for __DATA__, there is this chunk of code : #if defined(HAS_FCNTL) defined(F_SETFD) { const int fd = PerlIO_fileno(PL_rsfp); fcntl(fd,F_SETFD,fd = 3); } #endif

Re: __DATA__ and fcntl flags

2005-09-09 Thread Rafael Garcia-Suarez
I wrote: What's the sensible thing to do ? Ooh, Spider Boardman points to me that I misread F_SETFD as F_SETFL. I blame a friday afternoon and a hard week...