Module bootstrap

Module bootstrap 

Source

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.