Functionsยง
- bootstrap_
internal_ ๐server_ and_ drop_ privs - bootstrap_
server_ connection_ and_ drop_ privileges - This function is used to bootstrap the connection to the server. This can happen in two ways:
- connect_
to_ ๐external_ server - drop_
privs ๐ - Drop privileges to the real user and group of the process. If the process is not running with elevated privileges, this function is a no-op.
- invoke_
server_ ๐with_ config - Fork a child process to run the server with the provided config. The server will exit silently by itself when it is done, and this function will only return for the client with the socket for the server.
- run_
forked_ ๐server - Run the server in the forked child process. This function will not return, but will exit the process with a success code.
- will_
connect_ ๐to_ external_ server - Determine whether we will make a connection to an external server or start an internal server with elevated privileges.