If I remember correctly the intention is for it to be a 1-1 mapping between files.Fd objects and fd's. files.Fd_ref exists to make assign(), dup() and similar operations possible (ie several files.Fd_ref objects can refer to the same fd).
/ Henrik Grubbström (Lysator)
Previous text:
2003-03-19 16:45: Subject: I/O callbacks in blocking mode
Yes, that's the intention. At least poll/select and the following read should be within the same interpreter lock, but I think it would be more clean if the indirection through the Pike callbacks in Stdio.File is removed completely. But I guess there's some reason for it. Could someone explain what it is?
/ Martin Stjernholm, Roxen IS