Skip to content
Snippets Groups Projects
  • Colin Walters's avatar
    9d995a36
    fdio: Support taking ownership of tmpfile fd · 9d995a36
    Colin Walters authored
    While reading a strace I noticed a double close in the tests; this was because
    we were missing an assignment to `-1` in the tests. However, let's make
    supporting this clearer by explicitly supporting the fd being `-1` while still
    setting the `initialized` variable to `FALSE`. We also add the `EBADF` assertion
    checking.
    9d995a36
    History
    fdio: Support taking ownership of tmpfile fd
    Colin Walters authored
    While reading a strace I noticed a double close in the tests; this was because
    we were missing an assignment to `-1` in the tests. However, let's make
    supporting this clearer by explicitly supporting the fd being `-1` while still
    setting the `initialized` variable to `FALSE`. We also add the `EBADF` assertion
    checking.