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

Function signal_handler

dpdk/examples/dma/dmafwd.c:1034–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1032}
1033
1034static void
1035signal_handler(int signum)
1036{
1037 if (signum == SIGINT || signum == SIGTERM) {
1038 printf("\n\nSignal %d received, preparing to exit...\n",
1039 signum);
1040 force_quit = true;
1041 } else if (signum == SIGUSR1) {
1042 dmadev_dump();
1043 }
1044}
1045
1046int
1047main(int argc, char **argv)

Callers

nothing calls this directly

Calls 2

dmadev_dumpFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected