Skip to content

pick error categories from the code's type - #19753

Merged
kevinushey merged 15 commits into
mainfrom
bugfix/19745-error-categories
Nov 24, 2026
Merged

kevinushey merged 15 commits into
mainfrom
bugfix/19745-error-categories

Conversation

@kevinushey

@kevinushey kevinushey commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Intent

On Windows, errors that RStudio builds from an errno value or a portable errc value reported the message of an unrelated Win32 error with the same number. For example, errc::io_error (5) read as "Access is denied", and errc::is_a_directory (21) as "The device is not ready". systemError(int) put every integer in system_category(), which on Windows means Win32 codes, and systemError(errc::X) reached it through the enum's conversion to int.

Fixes #19745.
Fixes #19755.
Addresses #18946.

This replaces #19749, which fixed the same bug by rejecting bare integers on every platform. This version keeps systemError(errno) working where an int can only be errno, and only requires the caller to say which kind of code it has on Windows.

Approach

The guideline: errno values and portable errc codes use generic_category(); native OS errors (Win32 codes) use system_category(); and tests for a particular condition compare against an errc value, not a raw number.

The code's type picks the category.

Argument Category
boost::system::errc value generic, on every platform
int on POSIX (errno, or an error number a call returns) generic
DWORD (GetLastError()) or LONG (Reg*, ERROR_* constants) on Windows system
registered Boost error code enum (asio, json::errc, windows_error) the enum's own category
int on Windows deleted: it may hold errno or a Win32 code
any other integer type or enum deleted

DWORD is unsigned long and LONG is long, which are distinct types from int for overload resolution, so the Win32 callers compile unchanged. On Windows, errno set by the C runtime goes through the new genericError(int), which also rejects other integer types and enums (so genericError(GetLastError()) doesn't compile). systemCallError() is POSIX-only, and generic.

On POSIX, an errno value is one error whoever reports it. The system and generic categories both hold errno values there, and Boost (asio, filesystem) reports errno in the system category, so the same ENOENT would otherwise be two unequal errors depending on which library made the call. Error stores a system-category code as generic on POSIX, in every constructor, and operator==(error_code) treats its argument the same way. On Windows nothing is folded: a Win32 code and an errno value are different codes.

Logs and messages keep the system error N (...) form on POSIX. The new Error::getDisplayName() gives the name to show (system for a generic error on POSIX, otherwise the stored name), and getSummary(), the JSON log's type field and errorMessage() use it. getName(), ==, matches(), writeJson() and the RPC category field keep the stored name. On Windows a generic error is shown as generic error N, since there the name says which set of codes the number belongs to.

Condition tests use Error::matches(errc). Errors built from errc values are now generic, while on Windows Boost reports the same conditions as Win32 codes in the system category, so there the 13 error == systemError(errc::X, ErrorLocation()) checks can never equal one of Boost's errors (before, they did only where the errno number happened to equal the Win32 one). They now call error.matches(errc::X), which uses Boost's condition mapping for Win32 codes. On POSIX the equality would still hold, since both sides are errno values, so test-linter.R rejects the == form to keep a check that passes on POSIX from being quietly false on Windows. On Windows this means, for example, that both ERROR_FILE_NOT_FOUND and ERROR_PATH_NOT_FOUND match no_such_file_or_directory, and that ERROR_NOT_READY no longer matches is_a_directory by sharing its number. operator== still compares the code and category name exactly.

The 9 checks that compared getCode() or value() against an errc value ignored the category entirely, so on Windows they compared Win32 codes against errno numbers. They now use matches(), or Boost's ec == errc::X for a raw error_code. Where they compile on Windows, this changes behavior:

  • Posit Assistant's file reads and writes report "Permission denied" for ERROR_ACCESS_DENIED (5), which never equaled EACCES (13), instead of a generic failure. Boost also maps ERROR_SHARING_VIOLATION to permission_denied, so a file that another program holds open is checked for first, with the new core::isFileInUseError(), and reported as "File is in use by another program". That covers reads too: our readers don't share writes, so a read fails the same way while another program has the file open for writing.
  • The accept backoff in isResourceExhaustionError() now runs on Windows, where asio reports WSAEMFILE and ERROR_OUTOFMEMORY rather than 24 and 12. Its system-category guard is gone, since a condition comparison can't match another category's number.
  • SocketAcceptorService's destructor no longer logs WSAEBADF from closing an already-closed acceptor.

The rest (LocalStreamAsyncServer, LocalStreamAsyncClient, SocketOwnership) are POSIX-only and only get shorter.

Checks that compared native codes exactly. Some checks only recognized our errc-built errors because those used to be in the system category:

  • isNotFoundError() on Windows compared against ERROR_FILE_NOT_FOUND and ERROR_PATH_NOT_FOUND, and systemError(errc::no_such_file_or_directory) matched the first only because both are 2. It now also accepts the generic error, while native errors still match only those two codes.
  • http::isConnectionTerminatedError() and isConnectionUnavailableError() compared against asio's timed_out, connection_reset, bad_descriptor, broken_pipe and connection_refused. On POSIX our own systemError(errc::timed_out) (request deadlines, connect timeouts) and systemError(errc::connection_refused) (a refused proxy CONNECT) matched them exactly; they now compare as conditions. isConnectionUnavailableError() still retries only the native Windows pipe errors it did before (ERROR_FILE_NOT_FOUND, ERROR_BROKEN_PIPE, ERROR_PIPE_BUSY), plus a generic not-found error. Likewise, isConnectionTerminatedError() on Windows still treats only ERROR_FILE_NOT_FOUND among the native not-found codes as a client hang-up, plus a generic not-found error; Check which Windows not-found codes isConnectionTerminatedError() should treat as a client hang-up #19756 asks whether ERROR_PATH_NOT_FOUND belongs there too.
  • friendlySaveError() in SessionSource.cpp rebuilt the disk-full error in the system category; it now keeps the original category and code.

Call sites.

  • The 10 errno call sites that compile on Windows use genericError() or an errc value (Win32OutputCapture.cpp, Win32System.cpp, RUtil.cpp, SessionContentUrls.cpp).
  • FileSerializer.cpp's fileError() and atomicWriteError() took an int code, and Windows callers passed GetLastError() through it, losing the DWORD type. They now take the finished Error, built where the code is read (LAST_SYSTEM_ERROR() on Windows, which also captures it before ERROR_LOCATION is constructed).
  • isDiskSpaceError(), isPermissionError() and isMountPointError() required the system category. On POSIX they now require generic, which is how an Error stores every errno value there, so both our errno errors and Boost's classify; on Windows they still require a Win32 code.
  • zlib return codes (ZlibUtil.cpp, Response.cpp) and Mach kern_return_t values (MacResources.cpp) get zlib and mach categories with their own messages, since they're neither errno values nor Win32 codes.
  • Five codes built by hand as error_code(errc::X, system_category()) now use the generic category, and PosixChildProcess.cpp keeps the asio error's category instead of rebuilding it from value().
  • RConsoleHistory.cpp drops the std::make_error_code workaround from report savehistory() / loadhistory() failures as errors on windows #19689 in favor of systemError(errc::...).
  • ZoteroBetterBibTeX.cpp's timeout check assigned instead of comparing, (error = systemError(errc::timed_out, ErrorLocation())), which was always true. Every error other than an unavailable connection was replaced with a fake timeout and reported as "Zotero isn't running", and the branch that logs unexpected errors never ran. It's now error.matches(errc::timed_out) (from compare, don't assign, when checking for a better bibtex timeout #19752).
  • startHttpConnectionListenerWithTimeout() (SessionHttpMethods.cpp) compared the listener error against a generic address_in_use, which asio's system-category bind error never equals, so the busy-port retry after an rsession restart never ran. It now uses matches(). Each attempt builds a new listener, so initializeHttpConnectionListener() now frees the one whose bind failed, and with it the socket it had opened, before building the next; otherwise a restart onto a busy port would leak a listener per attempt (about ten in the one-second retry window). A local stream that another process is already listening on also reports address_in_use, so that case now retries for a second before failing.
  • isFileInUseError() replaces FileSerializer.cpp's private isFileLockedError(), which checked only the code. The write retry loop no longer takes an errno 32 (EPIPE) for a sharing violation.
  • iconvstrImpl() (RUtil.cpp) and captureCommand() (Win32System.cpp) now save errno before Riconv_close() or LOG_ERROR can overwrite it, so the error reports the failed call (iconvstrImpl() reads errno after Riconv_close(), which can change it #19755).

Visible changes besides Windows messages: on POSIX, log lines and error messages are unchanged (system error N), but the RPC category field and Error::writeJson() now carry generic for errno errors, including the ones Boost reports. The client only checks the category for a Win32 sharing violation, which is still system. On Windows, errno errors now log as generic error N with the errno message.

For #18946, this covers its first group (Error(errc::X) and systemError(errc::X) now build the same generic error, which ErrorTests pins) and its third (the value comparisons above; RToolsInfo.cpp and http/Util.cpp were fixed earlier). Not included: AsyncConnectionImpl::handleStreamError() rebuilding a stream write's error in the generic category.

Automated Tests

  • src/cpp/shared_core/ErrorTests.cpp (new): compile-time checks of which types each factory accepts on each platform, plus the categories, messages, descriptions and causes for errc values, errno values, registered enums and (on Windows) DWORD/LONG codes, LAST_SYSTEM_ERROR() on both platforms, and matches(). On POSIX it also checks that an errno value is the same error from the generic category, Boost's system category, a category name or a std::error_code, and that such errors are shown as system error N; on Windows, that errno 5 and Win32 code 5 stay distinct and are shown as generic and system.
  • FileSerializerTest.IsDiskSpaceErrorClassifies also covers an errno value in the system category, as Boost reports it.
  • FileSerializerTest.FileHeldOpenByAnotherHandleIsInUse (new, Windows) holds a file open with a write handle and checks that both our write and our read fail with an error that isFileInUseError() recognizes and that also matches permission_denied. FileSerializerTest.IsFileInUseErrorClassifies (new) covers the predicate on both platforms, including errno 32 on Windows.
  • SocketUtilsTests.cpp (new): each connection classifier accepts both the asio code and the generic error for the same condition, and on Windows isConnectionUnavailableError() accepts ERROR_FILE_NOT_FOUND but not ERROR_PATH_NOT_FOUND, ERROR_INVALID_NAME or ERROR_BAD_NETPATH, and isConnectionTerminatedError() accepts ERROR_FILE_NOT_FOUND but not ERROR_PATH_NOT_FOUND.
  • SharedCoreTest.NotFoundHelpersMatchFileAndPathErrors also covers the generic not-found error.
  • ZlibTest.DecompressErrorsAreZlibErrors (new).
  • AsyncServerResourceExhaustion.ClassifiesResourceErrors now uses the codes asio reports (no_descriptors, no_memory, ...), which are native on each platform, so on Windows it exercises WSAEMFILE and ERROR_OUTOFMEMORY.
  • LoggingTest.CanJsonLogError now expects the generic message, with the logged type system on POSIX and generic on Windows.
  • test-linter.R rejects errc values paired with system_category() in C++ sources.

On macOS, before the last two commits (folding errno categories on POSIX, and the review fixes): core 891 passed (12 skipped), shared-core 26, rsession 951, rserver 133 (11 skipped), and the R linter and history tests pass.

With those two commits:

  • Windows (MSVC): core 759 passed (5 skipped), shared-core 25, rsession 914 (2 skipped).
  • Linux: the ErrorTest suite passes (8 tests) in a standalone g++ build of Error.cpp and ErrorTests.cpp, and FileSerializer.cpp, FileSerializerTests.cpp and LoggingTests.cpp compile. The full POSIX suites weren't rerun locally, so CI is the first run of the system expectation in LoggingTest.CanJsonLogError, and the first compile of the edit to SessionPosixHttpConnectionListener.cpp.
  • The four C++ lint tests in test-linter.R pass.
  • The listener fix has no test of its own: the retry goes through the session's options and a file-static listener.

QA Notes

On Windows:

  1. loadhistory(tempdir()) should report "is a directory".
  2. rsession log entries for internal errors should read like errno messages ("Input/output error", "Invalid argument") rather than unrelated Win32 messages ("Access is denied").
  3. Saving a file that another program holds open should still show the message about the file being in use.
  4. With a file open in another program that locks it (e.g. a .csv open in Excel), asking Posit Assistant to edit that file should fail with "File is in use by another program", not "Permission denied".

On Linux or macOS, rsession and rserver log entries for errno errors should still read system error N (...), as before.

On any platform, with Zotero closed, the Better BibTeX warning should still say Zotero isn't running.

Documentation

None needed.

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards (n/a: no UI)
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

systemError(errc) and errno values now build generic-category errors, and
Win32 codes (DWORD, LONG) build system-category ones. On Windows an int is
ambiguous, so systemError(int) is deleted there; errno from the C runtime
goes through the new genericError(int). Integer types and enums whose
category can't be known are deleted on every platform, and registered Boost
error code enums keep their own category.

Comparisons against errc-built errors use the new Error::matches(errc), zlib
and Mach return codes get their own categories, and FileSerializer's error
helpers take a finished Error rather than an int that lost the code's type.

Addresses #19745.
getCode() / value() == errc ignored the category, so on Windows these
checks compared Win32 codes against errno numbers. Use Error::matches()
or boost's ec == errc instead, and pin that Error(errc) equals
systemError(errc).

Addresses #18946.
isNotFoundError() on Windows and the socket error classifiers compared
against native codes exactly, which errc-built errors only matched while
they were in the system category. Accept the generic forms too, and keep
friendlySaveError() in the original error's category.

Addresses #19745.
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
5821 0 254 1
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 4 0 16 0
✅ desktop-linux 1456 0 49 0
✅ desktop-macos 1463 0 43 0
✅ desktop-windows 1451 0 60 0
✅ server-linux 1399 0 54 1
✅ setup 48 0 32 0

View report online


All platforms - commit ce7c1e7f4a792d8adb6e49e954d16a1a1814e618 - Run #2488

The using-directive for boost::asio::error made 'eof' ambiguous with the
global ::eof(int) that the Windows CRT declares in <io.h> (C2872).

Addresses #19745.
- iconvstrImpl() and captureCommand() read errno only after
  Riconv_close() / LOG_ERROR, which can overwrite it; save it first.
- startHttpConnectionListenerWithTimeout() compared against a
  generic-category address_in_use, which an asio bind error (system
  category) never equals, so the retry never ran; use matches().
- isConnectionTerminatedError() on Windows again matches only
  ERROR_FILE_NOT_FOUND among the native not-found codes, as before;
  #19756 tracks whether ERROR_PATH_NOT_FOUND belongs there too.

Addresses #19745, #19755.
An error built from an errc value is generic, while Boost reports the same
condition in the system category, so == against systemError() / Error(errc)
is quietly false, and getCode() / value() compared with an errc value ignores
the category. test-linter.R now flags both forms, including ones split
across lines.

It found two such checks in the Posit Assistant edit-file handler, which on
Windows compared ERROR_ACCESS_DENIED with EACCES; they now use matches().
systemError(::GetLastError(), ERROR_LOCATION) can read the last error after
MSVC debug builds construct ERROR_LOCATION and reset it to 0, which is why
LAST_SYSTEM_ERROR() exists. test-linter.R now flags the direct call, and the
four remaining sites in Win32Resources.cpp and FilePath.cpp use the macro.

It also flags a newly built error assigned in a condition, such as the
always-true ((error = systemError(errc::timed_out, ...))) Zotero check, and
shares the C++ source scan between these lint tests.

@gtritchie gtritchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two issues from the switch to matches(), plus a NEWS entry. Details inline:

  • the address_in_use retry at startup now runs, and each attempt leaks a listener
  • on Windows, Posit Assistant now reports a file that's open in another program as "Permission denied"
  • NEWS.md has no entry for #19755

if (!error)
return WaitResult(WaitSuccess, Success());
else if (error != boost::system::error_code(boost::system::errc::address_in_use, boost::system::generic_category()))
else if (!error.matches(boost::system::errc::address_in_use))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With matches() this retry now runs. Before, Error::operator== also compared category names, so asio's system-category EADDRINUSE never equaled the generic code, and every bind failure went to WaitError.

Each retry goes through startHttpConnectionListener() -> initializeHttpConnectionListener(), which news a listener and overwrites s_pHttpConnectionListener without deleting the previous one (SessionWin32HttpConnectionListener.cpp:81, SessionPosixHttpConnectionListener.cpp:81 and :93). The failed listener's acceptor was already opened (TcpIpSocketUtils.hpp:99) before bind failed (:151). So with waitWithTimeout(..., 0, 100, 1) (SessionMain.cpp:3051), a restart that hits a busy port leaks up to ~10 listeners, each with its own io_context and an open socket.

The local-stream listeners (SessionPosixHttpConnectionListener.cpp:157 and :188) are recreated the same way. A local stream that another process is already listening on also returns address_in_use (LocalStreamSocketUtils.hpp:257), so that case now retries for a second instead of failing right away.

Could the listener be built once and only the bind retried, or the failed listener deleted before the next attempt?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, and you're right that this PR is what makes the retry reachable. Fixed in ec52fee: initializeHttpConnectionListener() now deletes the previous listener before building the next one, on both platforms. It's only called again after a bind that failed with address_in_use, so that listener never started and nothing else refers to it; destroying it closes the acceptor through SocketAcceptorService's destructor. The claimed session-stream listener on POSIX still returns early and is left alone.

I went with deleting the failed listener over retrying only the bind, since bindEndpoint() would otherwise have to close and reopen an acceptor that's already open.

Two caveats. There's no test for this: the retry goes through the session options and a file-static pointer. And I left the local-stream case retrying for a second. It no longer leaks, and a restarting session may be waiting on the old process to let go of the stream, but I'm happy to exclude it if you'd rather it fail right away.

Comment thread src/cpp/session/modules/SessionChat.cpp Outdated
if (error)
{
if (error.getCode() == boost::system::errc::permission_denied)
if (error.matches(boost::system::errc::permission_denied))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows, this now matches ERROR_SHARING_VIOLATION and ERROR_WRITE_PROTECT: Boost 1.91 maps both to permission_denied (boost/system/detail/system_category_condition_win32.hpp). writeContentsToFile opens the target with share mode 0 (FileSerializer.cpp:130), so writing a file that's open in Excel fails with ERROR_SHARING_VIOLATION, and the Assistant gets "Permission denied: ". It used to get "Failed to write file", because the old getCode() == errc::permission_denied compared against 13, which is ERROR_INVALID_DATA on Windows.

"Permission denied" points the agent at file permissions when the fix is to close the file in the other program. The edit path's write (line 3148) behaves the same way, and so do the reads at 2612 and 3098 when the other program also denies read sharing.

Could Windows check for ERROR_SHARING_VIOLATION first, with an "in use by another program" message? Or match only ERROR_ACCESS_DENIED here, which is the case the PR description mentions.

@kevinushey kevinushey Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, and fixed in ec52fee with your first suggestion. There's a new core::isFileInUseError() (a Win32 ERROR_SHARING_VIOLATION, false on POSIX), and all four handlers test it before the permission check and report File is in use by another program: <path>.

The read case turns out to be broader than "the other program also denies read sharing": FilePath::openForRead opens without FILE_SHARE_WRITE, so our read fails with a sharing violation whenever another program holds a write handle. FileSerializerTest.FileHeldOpenByAnotherHandleIsInUse covers both the write and the read.

The predicate also replaces the private isFileLockedError() in FileSerializer.cpp, which checked only the code, so the write retry loop no longer treats errno 32 (EPIPE) as a sharing violation.

ERROR_WRITE_PROTECT still reports "Permission denied", which seemed right for write-protected media.

Comment thread NEWS.md
- ([#19661](https://github.com/rstudio/rstudio/issues/19661)): RStudio Desktop can now switch to another installed version of R on macOS and Linux as well as Windows, from Tools > Global Options > General or Session > Switch R Version, restarting only the R session rather than RStudio. The version of R switched to, including from the renv R version notice in the Console, is kept for later launches; it takes precedence over `RSTUDIO_WHICH_R` until that variable changes (as it does when rig's default R changes), and is forgotten then. If the chosen R can't be used at startup, RStudio starts with the default R and asks whether to keep the choice (on Windows, the Choose R dialog is shown, as before), and if a session fails to start with the chosen R, the error page offers to go back to the previous or the default version of R.

### Fixed
- ([#19745](https://github.com/rstudio/rstudio/issues/19745)): Fixed an issue on Windows where some error messages described an unrelated Windows error, e.g. an input/output error reported as "Access is denied".

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR fixes #19755 (iconvstrImpl() and captureCommand() reading errno after cleanup), but this is the only new entry. That code is in released versions, so per .claude/CLAUDE.md it needs its own ### Fixed entry.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in ec52fee. The entry describes the iconvstrImpl() case, which is what #19755 covers; the captureCommand() change is the same kind of fix but isn't part of that issue.

On POSIX the system and generic categories both hold errno values, and
which one an errno value arrives in depends only on who reported it: our
own errors are generic, while Boost (asio, filesystem) reports errno in
the system category. The same ENOENT was then two unequal errors.

Error now stores a system-category code as generic on POSIX, and
operator==(error_code) treats its argument the same way, so errors for
the same errno value are equal. On Windows nothing changes: a Win32 code
and an errno value are different codes and stay distinct.

Logs and messages keep the "system error N" form on POSIX. The new
Error::getDisplayName() gives the name to show, and getSummary(), the
JSON log's type field and errorMessage() use it. getName(), ==,
matches(), writeJson() and the RPC category field keep the stored name.

hasNativeCode() in FileSerializer.cpp is now one check per platform, and
the system branch of matches() is Windows-only. matches() also documents
that a Win32 code matches by Boost's many-to-one mapping.

Addresses #19745.
Review feedback on the switch to matches():

- The address_in_use retry in startHttpConnectionListenerWithTimeout()
  now runs, and each attempt built a new listener without freeing the
  one whose bind had failed, leaking it and the socket it had opened.
  initializeHttpConnectionListener() now deletes that listener first; it
  never started, so nothing else refers to it.

- On Windows, matches(permission_denied) is also true for
  ERROR_SHARING_VIOLATION, so Posit Assistant reported a file that was
  open in another program as "Permission denied". The new
  core::isFileInUseError() recognizes the sharing violation, and the
  Assistant's read, write and edit handlers test for it first and say
  the file is in use by another program.

  isFileInUseError() replaces FileSerializer.cpp's isFileLockedError(),
  which checked only the code; the write retry loop no longer takes an
  errno 32 (EPIPE) for a sharing violation.

- NEWS.md gains an entry for #19755.

Addresses #19745, #19755.
Review feedback:

- getDisplayName() returned a function-local static string, which exit()
  destroys while a detached thread may still log an error. It is now
  leaked with make_leaked().

- iconvstrImpl() read errno after output.insert(), which can allocate,
  had run. It now reads it once, right after Riconv().

- The condition-comparison lint missed an Error compared with a
  boost::system::error_code built from an errc value, the form of the
  original listener retry check. It now flags that too.

- ClassifiesResourceErrors gains generic-category positive cases, and
  the unusable-manifest test checks matches(protocol_not_supported), as
  the update check does, rather than the bare code.

Addresses #19745.
@kevinushey
kevinushey requested a review from gtritchie November 23, 2026 22:41

@gtritchie gtritchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, all three are addressed. The listener fix, isFileInUseError() and the NEWS entry look good, as does the errno-as-generic change on POSIX.

@kevinushey
kevinushey merged commit d7eb009 into main Nov 24, 2026
36 checks passed
@kevinushey
kevinushey deleted the bugfix/19745-error-categories branch November 24, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iconvstrImpl() reads errno after Riconv_close(), which can change it systemError(boost::system::errc::X) reads errno values as Win32 codes on Windows

2 participants