• Kirill Tkhai's avatar
    files: Merge states iteration into open_fdinfos() · ec1f7cab
    Kirill Tkhai authored
    TTY masters and slaves have no post_open stage,
    so these two blocks may safely have their stages merged together.
    
    The third is eventpoll, but two above do not depend
    on it (their .post_open do not depend on eventpoll .open).
    Unix sockets would have been, but this isn't implemented yet.
    
    So, we may safely execute all stages for different
    file types separatelly.
    
    travis-ci: success for Rework file opening scheme to make it asynchronous (rev5)
    Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    ec1f7cab
files.c 35.4 KB