Fix to avoid creation of zombie processes by PTP status script, see #85

This commit is contained in:
Andrea Bondavalli 2022-06-03 08:52:04 +02:00
parent e2aad3e288
commit 1886317cab

View File

@ -35,7 +35,7 @@ namespace po = boost::program_options;
namespace postyle = boost::program_options::command_line_style;
namespace logging = boost::log;
static std::string version("bondagit-1.5");
static std::string version("bondagit-1.5.1");
static std::atomic<bool> terminate = false;
void termination_handler(int signum) {
@ -92,6 +92,7 @@ int main(int argc, char* argv[]) {
signal(SIGINT, termination_handler);
signal(SIGTERM, termination_handler);
signal(SIGCHLD, SIG_IGN);
std::srand(std::time(nullptr));