DL6ER
f28cc2b8fb
Remove obsolete test singularity function
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-05-12 14:47:00 +02:00
DL6ER
599e27b324
Revert "No forking"
2018-05-12 14:39:44 +02:00
DL6ER
0714bd6ed1
Don't go into background, just let this be handled by init (sys-V, systemd)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-05-08 18:02:18 +02:00
DL6ER
c224743c39
Ensure closing stdin, stdout and stderr is handled by the resolver code
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-02-25 08:49:31 +01:00
DL6ER
e75bd26994
Improve overall memory handling by checking for failed memory allocation events at the places we need the allocated space
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-02-07 13:23:54 +01:00
DL6ER
6ae42424ee
Add timers to FTL and measure time needed to save queries in database (only when running in debug mode)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-01-15 17:20:21 +01:00
DL6ER
380aee6689
Add test suite for FTL
2017-06-05 15:12:38 +02:00
DL6ER
2bbacbf1c2
Replace all fgets() calls by readline() to become independent of all existing line length limitations ( #43 )
2017-05-12 17:20:04 +02:00
DL6ER
23b60f2c77
Get PID only once
2017-04-14 18:07:54 +02:00
DL6ER
39abd05540
Fork twice to prevent the daemon from being a session leader - it cannot take control of a TTY any more - it is truely daemonized
2017-04-14 18:04:42 +02:00
DL6ER
1762019d32
Use getpid() when saving PID to file
2017-04-14 17:59:01 +02:00
DL6ER
d37cdfb349
Don't use PID file for detection of another pihole-FTL process is running. Instead, access /proc system and try to find other running pihole-FTL binaries. If we find them we try to kill them (SIGTERM)
2017-04-12 15:02:07 +02:00
DL6ER
c95198631a
Flush port and PID files on termination of FTL
2017-04-08 23:11:54 +02:00
DL6ER
ece9f18c1b
Removed logg_int
2017-04-08 18:27:56 +02:00
DL6ER
6d620c17fb
Return early if PID cannot be read
2017-04-03 15:40:19 +02:00
DL6ER
82aed82bf7
Increase verbosity and don't exit if PID file cannot be read
2017-04-03 15:24:06 +02:00
DL6ER
3bcffa46f5
Improve log parser for pihole.log with file size > 4 GB
2017-03-30 00:53:58 +02:00
DL6ER
78f615201a
Some non-POSIX systems use different conventions for exit status values.
...
For greater portability, we now use the macros EXIT_SUCCESS and EXIT_FAILURE for the conventional status value for success and failure, respectively.
They are declared in stdlib.h
2017-03-29 14:00:51 +02:00
DL6ER
2af9f5097b
Include username of user that is calling FTL in log
2017-03-29 13:44:07 +02:00
DL6ER
aa46dfa584
Add "running" argument that tests if another FTL process is running
2017-03-22 17:19:04 +01:00
DL6ER
d5cee421ab
Improved sleepms()
2017-02-21 16:28:03 +01:00
DL6ER
3039601c5d
Added sleepms() function
2017-02-21 16:20:51 +01:00
DL6ER
02443b5445
Show message that FTL wents into background mode
2017-02-10 16:58:32 +01:00
DL6ER
d958ac4fb9
Added ASLR protection
2017-02-08 14:14:50 +01:00
DL6ER
fcc90aa126
Include error code if changing of directory is not successful
2017-02-08 13:02:31 +01:00
DL6ER
eaf5c569fb
Process some more return values
2017-02-08 12:59:13 +01:00
DL6ER
c864ceebae
Fix possible resource leak
2017-02-06 11:14:10 +01:00
DL6ER
b095349307
Rename PID file
2017-02-03 23:53:42 +01:00
DL6ER
6533043968
Create struct that holds FTL related filenames
2017-02-03 23:51:44 +01:00
DL6ER
68984e354e
Initial upload of the FTL engine
2017-02-02 12:44:45 +01:00