In the functions print_passet() and print_passet_err() the log files are constantly opened and closed when writing new records.
A much more efficient way would be to open the file handles once and keep using that for writing the log records. Maybe the global config object could be used for that.
Also a SIGHUP handler would be nice to have so passivedns can be signaled for closing and re-opening of the log files. (for log rotation purposes)
In the functions print_passet() and print_passet_err() the log files are constantly opened and closed when writing new records.
A much more efficient way would be to open the file handles once and keep using that for writing the log records. Maybe the global config object could be used for that.
Also a SIGHUP handler would be nice to have so passivedns can be signaled for closing and re-opening of the log files. (for log rotation purposes)