MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / sigterm_handler

Function sigterm_handler

ffmpeg-single-cmd/src/main/cpp/ffmpeg_mod.c:327–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325static int main_return_code = 0;
326
327static void
328sigterm_handler(int sig)
329{
330 received_sigterm = sig;
331 received_nb_signals++;
332 term_exit_sigsafe();
333 if(received_nb_signals > 3) {
334 write(2/*STDERR_FILENO*/, "Received > 3 system signals, hard exiting\n",
335 strlen("Received > 3 system signals, hard exiting\n"));
336
337 exit(123);
338 }
339}
340
341#if HAVE_SETCONSOLECTRLHANDLER
342static BOOL WINAPI CtrlHandler(DWORD fdwCtrlType)

Callers 1

CtrlHandlerFunction · 0.85

Calls 1

term_exit_sigsafeFunction · 0.85

Tested by

no test coverage detected