Commit Graph

216 Commits

Author SHA1 Message Date
Technicalpyro 3946d4bf8e potential issue template 2017-04-12 11:47:23 -04:00
DL6ER 5b8b9290e9 Rearrange debugging instructions 2017-04-11 11:14:33 +02:00
DL6ER b216311bd5 Extend README.md by detailed debugging instructions 2017-04-11 11:10:31 +02:00
DL6ER 992f16ba56 Don't compute log of zero 2017-04-10 22:17:45 +02:00
DL6ER 032bfc085c Analyze and show file permissions for log files v2.0 2017-04-10 00:46:52 +02:00
DL6ER 66e8c72a4f Enhance error messages 2017-04-09 22:53:08 +02:00
DL6ER c7b3ddd2fe Reduce polling of pihole.log from 20x per second to 5x per second 2017-04-09 22:43:38 +02:00
DL6ER a33dba3194 Add -Wextra which enables some extra warning flags that are not enabled by -Wall 2017-04-09 20:48:59 +02:00
DL6ER aa1696060b Prevent comparison between signed and unsigned variables 2017-04-09 20:48:33 +02:00
DL6ER 371b7a0f32 Use stat() and don't keep pihole.log open forever. Fixes #16 2017-04-09 20:41:25 +02:00
DL6ER 76f2039a2a bzero is obsolete. Using memset instead 2017-04-08 23:46:33 +02:00
DL6ER c95198631a Flush port and PID files on termination of FTL 2017-04-08 23:11:54 +02:00
DL6ER 4fee334c95 Allow re-binding to used port in case FTL is restarted in short intervals. This is common practice in server programs. v1.11.1 2017-04-08 22:57:56 +02:00
DL6ER e7658076d1 Improve log messages in parser thread 2017-04-08 22:57:23 +02:00
DL6ER b3451e5b26 Include string.h for the buit-in function bzero() 2017-04-08 22:56:55 +02:00
DL6ER 7ddf0ceb90 Don't try to close the log file when FTL is terminated, since we close it after every write 2017-04-08 22:56:09 +02:00
DL6ER 8d9cd43f9d More logging to syslog in case of critical errors 2017-04-08 22:28:34 +02:00
DL6ER ff99ea0473 Write to SYSLOG if writing to FTL's log file fails 2017-04-08 22:24:27 +02:00
DL6ER 308c65a99f Don't use write buffer as it might be a potential attack vector 2017-04-08 22:02:38 +02:00
DL6ER c64ead386f Don't fail when FTL's log cannot be opened while FTL is running (only on startup) v1.11 2017-04-08 18:56:06 +02:00
DL6ER 77ef25e4d9 Remove logg_uint and test if FTL log can be opened at start of FTL 2017-04-08 18:46:16 +02:00
DL6ER ca893f1c1b Removed logg_bool 2017-04-08 18:42:45 +02:00
DL6ER 4f5ad1f09f Restructured logg_struct_resize 2017-04-08 18:42:07 +02:00
DL6ER 9e7a57c417 Removed logg_str_str_int 2017-04-08 18:40:34 +02:00
DL6ER 1985f8e6eb Removed logg_str_str 2017-04-08 18:39:41 +02:00
DL6ER 5532de60b4 Removed logg_const_str 2017-04-08 18:36:30 +02:00
DL6ER 16a788429b Removed logg_str 2017-04-08 18:34:37 +02:00
DL6ER ece9f18c1b Removed logg_int 2017-04-08 18:27:56 +02:00
DL6ER 5c952f2cd6 Improve flexibility of log routines 2017-04-08 18:18:07 +02:00
DL6ER ed9c4ad6e1 Simplified config logic 2017-04-07 15:21:12 +02:00
DL6ER 099d4ba028 Implement QUERY_DISPLAY option 2017-04-07 15:14:26 +02:00
DL6ER 4f1df5acf7 Minor change in debug print statement 2017-04-07 14:37:59 +02:00
DL6ER a8d9b228cd Reorganize request.c 2017-04-07 14:37:29 +02:00
DL6ER 2abc2caace Make client and domain finding algorithms faster by skipping candidates that fail for a comparison of the very first character 2017-04-04 15:28:52 +02:00
DL6ER baca4cbb26 Factor out client finding algorithm 2017-04-04 15:24:30 +02:00
DL6ER 7039b3db99 Factor out domain finding algorithm 2017-04-04 15:22:43 +02:00
DL6ER 6d620c17fb Return early if PID cannot be read v1.10.3 2017-04-03 15:40:19 +02:00
DL6ER 82aed82bf7 Increase verbosity and don't exit if PID file cannot be read v1.10.2 2017-04-03 15:24:06 +02:00
DL6ER 890484569a Log warning to pihole-FTL.log v1.10.1 2017-04-03 14:43:47 +02:00
DL6ER f1b08b00eb Don't force exit if running with a different user 2017-04-03 14:42:21 +02:00
DL6ER 92ff3bc138 pihole-FTL should really be run as user "pihole" to not mess up with the file permissions. However, allow executing pihole-FTL directly when the "debug" flag is set v1.10 2017-04-03 10:39:13 +02:00
DL6ER ba058c1372 Increase verbosity of log file 2017-04-03 10:33:08 +02:00
DL6ER 28caa6c2fe Remove flag that is not needed according to gcc's man page v1.9 2017-04-03 00:06:58 +02:00
DL6ER d779673fa1 Re-parse all logs when receiving signal SIGUSR1 2017-04-02 23:59:49 +02:00
DL6ER b5a28edccb Debug mode: Print at which time query had to be enlarged (kind of log parsing process display for humongous logs 2017-04-02 22:57:23 +02:00
DL6ER fa37f92e33 ftell returns long int (not unsigned) 2017-04-01 16:00:00 +02:00
DL6ER 384384bb9e Remove non-standard flag from makefile 2017-03-31 19:46:00 +02:00
DL6ER 2b34562da1 Don't go into debugger when catching SIGSEGV, because the address pointer will only point to the signal handler, effectively masking the origin of the problem 2017-03-31 19:39:11 +02:00
DL6ER 3c8c75a7a5 Don't use abort for SIGINT since it may generate a core dump (if enabled) 2017-03-31 15:08:54 +02:00
DL6ER cb538f434c If a given signal was previously set to be ignored, this code avoids altering that setting. This is because non-job-control shells often ignore certain signals when starting children, and it is important for the children to respect this. 2017-03-31 15:07:55 +02:00