| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent af7baef commit a793706
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -761,9 +761,11 @@ void ResetStdio() { | |||
| 761 | 761 | while (err == -1 && errno == EINTR); // NOLINT | |
| 762 | 762 | CHECK_EQ(0, pthread_sigmask(SIG_UNBLOCK, &sa, nullptr)); | |
| 763 | 763 | ||
| 764 | - // Normally we expect err == 0. But if macOS App Sandbox is enabled, | ||
| 765 | - // tcsetattr will fail with err == -1 and errno == EPERM. | ||
| 766 | - CHECK_IMPLIES(err != 0, err == -1 && errno == EPERM); | ||
| 764 | + // We don't check the return value of tcsetattr() because it can fail | ||
| 765 | + // for a number of reasons, none that we can do anything about. Examples: | ||
| 766 | + // - if macOS App Sandbox is enabled, tcsetattr fails with EPERM | ||
| 767 | + // - if the process group is orphaned, e.g. because the user logged out, | ||
| 768 | + // tcsetattr fails with EIO | ||
| 767 | 769 | } | |
| 768 | 770 | } | |
| 769 | 771 | #endif // __POSIX__ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments