-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 5254, part 1: Do not leak master process' cache.log to kids (#1222)
The fork()ed kids unknowingly inherited cache.log file descriptor and, hence, prevented the underlying file from being deleted on log rotation. This change does not fully fix the bug because the file is still being held open by the master process itself. This change was isolated because it lacks bad/controversial side effects -- it is a simple step forward. This fix may also help stop leaking kid's cache.log descriptor to helpers, but that requires more work -- replacing descriptor duping trick in ipcCreate() with a proper servicing of helper stderr descriptor via Comm. For now, each helper process still keeps cache.log alive.
- Loading branch information
1 parent
09dbc44
commit 1a848e4
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters