Fix to avoid creation of zombie processes by PTP status script, see #85
This commit is contained in:
parent
e2aad3e288
commit
1886317cab
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user