Files
FTL/src/main.h
T
DL6ER d54f0a2205
Build, Test, Deploy / smoke-tests (push) Has been cancelled
Codespell / spell-check (push) Has been cancelled
Check for merge conflicts / merge-conflict (push) Has been cancelled
API validation / Node (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-386, , linux/386) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64, , linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-amd64-clang, clang, linux/amd64) (push) Has been cancelled
Build, Test, Deploy / gha (pihole-FTL-riscv64, , linux/riscv64) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-arm64, linux/arm64/v8) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv6, linux/arm/v6) (push) Has been cancelled
Build, Test, Deploy / self-hosted (pihole-FTL-armv7, linux/arm/v7) (push) Has been cancelled
Handle SIGTERM in FTL if dnsmasq failed to start. Otherwise, we may end up in a situation where nobody feels responsible for handling SIGTERM events and FTL ends up in an un-terminate-able state
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-25 18:33:55 +02:00

27 lines
664 B
C

/* Pi-hole: A black hole for Internet advertisements
* (c) 2019 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* FTL Engine
* Main prototypes
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
#ifndef MAIN_H
#define MAIN_H
// setjmp, longjmp, jmp_buf
#include <setjmp.h>
extern int main_dnsmasq(int argc, char ** argv);
// defined in dnsmasq_interface.c
void FTL_fork_and_bind_sockets(struct passwd *ent_pw, bool dnsmasq_start);
extern char *username;
extern bool startup;
extern bool forked;
extern jmp_buf exit_jmp;
#endif //MAIN_H