hongbo-miao/hongbomiao.com

View on GitHub
hm-kafka/kafka-client/kafka-c/json-producer/src/app.c

Summary

Maintainability
Test Coverage
#include "../include/app.h"

volatile sig_atomic_t is_running = true;

void handle_signal(int signal) {
  if (signal == SIGINT || signal == SIGTERM) {
    is_running = false;
  }
}