> Now there are two ways to proceed: > > a) Formalize the notion of a set of :AROUND methods for 'dup', 'dup2', > 'dup3', 'fcntl', 'close', in such a way that the first and third code > can share the same infrastructure. That would mean a file fd-hook2.c, > similar to fd-hook.c but just with other functions to hook in. > > b) Search for all uses of "#if REPLACE_FCHDIR" and add a > "#if WINDOWS_NONBLOCKING" section next to it (before or after, does not > matter, since they operate independently).
And if we overwrite socket for UNIX behavior ? The b approach will work ? Bastien