• Kirill Smelkov's avatar
    internal/syscall: Adjust Pipe to take flags · 63b5c1d9
    Kirill Smelkov authored
    This way e.g. O_CLOEXEC can be passed in at pipe creation time removing
    potential race in between pipe+fcntl vs exec in the middle. It will also
    help in windows porting in follow-up patches becuase there is no fcntl
    on Windows, but pipe with O_CLOEXEC semantic can be created directly
    with flags=_O_NOINHERIT.
    63b5c1d9
os.cpp 8.51 KB