Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c81f7da authored by Chris Manton's avatar Chris Manton Committed by Gerrit Code Review
Browse files

Merge "headless: Fix fcntl descriptor swap"

parents 406a3924 6ca13f8c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -114,7 +114,8 @@ class Main : public HeadlessTest<int> {
  }

  int Run() override {
    console_fd = fcntl(STDERR_FILENO, F_DUPFD_CLOEXEC);
    console_fd = fcntl(STDERR_FILENO, F_DUPFD_CLOEXEC, STDERR_FILENO);
    ASSERT(console_fd != -1);
    if (options_.close_stderr_) {
      fclose(stderr);
    }