![](comm_2minimal_8cc__incl.png)
Go to the source code of this file.
Functions | |
void | fd_open (const int fd, unsigned int, const char *description) |
void | fd_close (const int fd) |
void | commSetCloseOnExec (int) |
Function Documentation
◆ commSetCloseOnExec()
void commSetCloseOnExec | ( | int | fd | ) |
On platforms where FD_CLOEXEC is defined, close the given descriptor during a function call from the exec(3) family. Otherwise, do nothing; the platform itself may close-on-exec by default (e.g., MS Win32 is said to do that at https://devblogs.microsoft.com/oldnewthing/20111216-00/?p=8873); other platforms are unsupported. Callers that want close-on-exec behavior must call this function on all platforms and are not responsible for the outcome on platforms without FD_CLOEXEC.
Definition at line 27 of file minimal.cc.
Referenced by Comm::TcpAcceptor::acceptInto(), file_open(), ipcCreate(), DiskThreadsDiskFile::openDone(), and DebugFile::reset().
◆ fd_close()
void fd_close | ( | const int | fd | ) |
Definition at line 21 of file minimal.cc.
Referenced by comm_close_complete(), DiskThreadsDiskFile::doClose(), file_close(), CommIO::NotifyIOClose(), and DebugFile::reset().
◆ fd_open()
Definition at line 15 of file minimal.cc.
Referenced by Comm::TcpAcceptor::acceptInto(), comm_init_opened(), comm_open_uds(), ConfigureDebugging(), file_open(), CommIO::Initialize(), ipc_thread_1(), ipcCreate(), DiskThreadsDiskFile::openDone(), DebugFile::reset(), and Comm::SelectLoopInit().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products