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

Commit bab6261f authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Merge "headless: Fix fcntl descriptor swap" am: 3c81f7da

parents 791259bd 3c81f7da
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);
    }