Skip to content
Snippets Groups Projects
Commit 28cb2cfa authored by Dmitry Ivanov's avatar Dmitry Ivanov
Browse files

fix(picodata): don't close stderr & stdout in log_destroy

Previously, log_destroy would close log->fd even if it's one of the
standard streams. This behavior almost never makes sense, unless
one's trying to write a unix daemon which is obviously not the case.

Closing stderr has the following side effects:
- it breaks a reinit of the default logger;
- it inhibits ASan's final leak report;
- it causes a EPOLLHUP during a restart via `--entrypoint-fd` (Picodata).

NO_DOC=internal
NO_TEST=internal
NO_CHANGELOG=internal
parent 4396ba81
Branches picodata-25.1
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment