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

Function signal_handler

dpdk/examples/vdpa/main.c:291–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291static void
292signal_handler(int signum)
293{
294 if (signum == SIGINT || signum == SIGTERM) {
295 printf("\nSignal %d received, preparing to exit...\n", signum);
296 vdpa_sample_quit();
297 exit(0);
298 }
299}
300
301/* interactive cmd functions */
302

Callers

nothing calls this directly

Calls 2

vdpa_sample_quitFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected