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

Function INThandler

freebsd/contrib/zstd/programs/fileio.c:132–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130**************************************/
131static const char* g_artefact = NULL;
132static void INThandler(int sig)
133{
134 assert(sig==SIGINT); (void)sig;
135#if !defined(_MSC_VER)
136 signal(sig, SIG_IGN); /* this invocation generates a buggy warning in Visual Studio */
137#endif
138 if (g_artefact) {
139 assert(UTIL_isRegularFile(g_artefact));
140 remove(g_artefact);
141 }
142 DISPLAY("\n");
143 exit(2);
144}
145static void addHandler(char const* dstFileName)
146{
147 if (UTIL_isRegularFile(dstFileName)) {

Callers

nothing calls this directly

Calls 1

UTIL_isRegularFileFunction · 0.85

Tested by

no test coverage detected