MCPcopy Create free account
hub / github.com/F-Stack/f-stack / signal_handler

Function signal_handler

dpdk/examples/ntb/ntb_fwd.c:949–957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949static void
950signal_handler(int signum)
951{
952 if (signum == SIGINT || signum == SIGTERM) {
953 printf("\nSignal %d received, preparing to exit...\n", signum);
954 signal(signum, SIG_DFL);
955 kill(getpid(), signum);
956 }
957}
958
959#define OPT_BUF_SIZE "buf-size"
960#define OPT_FWD_MODE "fwd-mode"

Callers

nothing calls this directly

Calls 2

killFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected