GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: remove overzealous tcsetattr error check · nodejs/node@bb28e2b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node.cc‎

Copy file name to clipboardExpand all lines: src/node.cc
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,9 +712,11 @@ void ResetStdio() {
712712
while (err == -1 && errno == EINTR); // NOLINT
713713
CHECK_EQ(0, pthread_sigmask(SIG_UNBLOCK, &sa, nullptr));
714714

715-
// Normally we expect err == 0. But if macOS App Sandbox is enabled,
716-
// tcsetattr will fail with err == -1 and errno == EPERM.
717-
CHECK_IMPLIES(err != 0, err == -1 && errno == EPERM);
715+
// We don't check the return value of tcsetattr() because it can fail
716+
// for a number of reasons, none that we can do anything about. Examples:
717+
// - if macOS App Sandbox is enabled, tcsetattr fails with EPERM
718+
// - if the process group is orphaned, e.g. because the user logged out,
719+
// tcsetattr fails with EIO
718720
}
719721
}
720722
#endif // __POSIX__

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.