Home
last modified time | relevance | path

Searched refs:sig_num (Results 1 – 18 of 18) sorted by relevance

/external/perfetto/src/base/
Ddebug_crash_stack_trace.cc60 int sig_num; member
111 sigaction(g_signals[i].sig_num, &g_signals[i].old_handler, nullptr); in RestoreSignalHandlers()
115 void SignalHandler(int sig_num, siginfo_t* info, void* /*ucontext*/) { in SignalHandler() argument
121 if (sig_num == SIGSEGV) { in SignalHandler()
123 } else if (sig_num == SIGILL) { in SignalHandler()
125 } else if (sig_num == SIGTRAP) { in SignalHandler()
127 } else if (sig_num == SIGABRT) { in SignalHandler()
129 } else if (sig_num == SIGBUS) { in SignalHandler()
131 } else if (sig_num == SIGFPE) { in SignalHandler()
135 PrintHex(static_cast<uint32_t>(sig_num)); in SignalHandler()
[all …]
Dsubprocess_posix.cc424 void Subprocess::KillAndWaitForTermination(int sig_num) { in KillAndWaitForTermination() argument
425 kill(s_->pid, sig_num ? sig_num : SIGKILL); in KillAndWaitForTermination()
/external/python/cpython2/Modules/
Dsignalmodule.c167 trip_signal(int sig_num) in trip_signal() argument
169 Handlers[sig_num].tripped = 1; in trip_signal()
181 signal_handler(int sig_num) in signal_handler() argument
187 pth_raise(*(pth_t *) main_thread, sig_num); in signal_handler()
197 trip_signal(sig_num); in signal_handler()
206 if (sig_num != SIGCHLD) in signal_handler()
211 PyOS_setsig(sig_num, signal_handler); in signal_handler()
266 int sig_num; in signal_signal() local
269 if (!PyArg_ParseTuple(args, "iO:signal", &sig_num, &obj)) in signal_signal()
273 switch (sig_num) { in signal_signal()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D6-3.c52 int sig_num; in main() local
88 sig_num = WTERMSIG(status); in main()
89 printf("Child process terminated by signal %d\n", sig_num); in main()
90 if (sig_num == SIGSEGV) { in main()
D6-1.c51 int sig_num; in main() local
92 sig_num = WTERMSIG(status); in main()
93 printf("Child process terminated by signal %d\n", sig_num); in main()
94 if (sig_num == SIGSEGV) { in main()
D6-2.c53 int sig_num; in main() local
98 sig_num = WTERMSIG(status); in main()
99 printf("Child process terminated by signal %d\n", sig_num); in main()
100 if (sig_num == SIGSEGV) { in main()
/external/toybox/toys/pending/
Dfsck.c45 int sig_num;
261 if (TT.sig_num) kill_all(); in wait_for()
322 if (TT.sig_num) kill_all(); in scan_all()
350 if (TT.sig_num) kill_all(); in scan_all()
359 TT.sig_num = sig; in record_sig_num()
413 if (TT.sig_num) kill_all(); in fsck_main()
/external/python/cpython3/Modules/
Dsignalmodule.c241 trip_signal(int sig_num) in trip_signal() argument
247 _Py_atomic_store_relaxed(&Handlers[sig_num].tripped, 1); in trip_signal()
285 byte = (unsigned char)sig_num; in trip_signal()
326 signal_handler(int sig_num) in signal_handler() argument
330 trip_signal(sig_num); in signal_handler()
338 if (sig_num != SIGCHLD) in signal_handler()
343 PyOS_setsig(sig_num, signal_handler); in signal_handler()
351 if (sig_num == SIGINT) in signal_handler()
/external/e2fsprogs/ext2ed/
Dinit.c458 void signal_SIGWINCH_handler (int sig_num) in signal_SIGWINCH_handler() argument
468 void signal_SIGTERM_handler (int sig_num) in signal_SIGTERM_handler() argument
472 printf ("Terminated due to signal %d\n",sig_num); in signal_SIGTERM_handler()
476 void signal_SIGSEGV_handler (int sig_num) in signal_SIGSEGV_handler() argument
480 printf ("Killed by signal %d!\n",sig_num); in signal_SIGSEGV_handler()
Dext2ed.h246 void signal_SIGWINCH_handler (int sig_num);
247 void signal_SIGTERM_handler (int sig_num);
248 void signal_SIGSEGV_handler (int sig_num);
/external/selinux/policycoreutils/semodule/
Dsemodule.c73 static void handle_signal(int sig_num) in handle_signal() argument
75 if (sig_num == SIGINT || sig_num == SIGQUIT || sig_num == SIGTERM) { in handle_signal()
/external/igt-gpu-tools/lib/
Digt_core.c2096 static int install_sig_handler(int sig_num, sighandler_t handler) in install_sig_handler() argument
2098 orig_sig[sig_num].handler = signal(sig_num, handler); in install_sig_handler()
2100 if (orig_sig[sig_num].handler == SIG_ERR) in install_sig_handler()
2103 orig_sig[sig_num].installed = true; in install_sig_handler()
2108 static void restore_sig_handler(int sig_num) in restore_sig_handler() argument
2111 signal(sig_num, SIG_DFL); in restore_sig_handler()
/external/perfetto/include/perfetto/ext/base/
Dsubprocess.h195 void KillAndWaitForTermination(int sig_num = 0);
/external/grpc-grpc/src/core/lib/iomgr/
Dev_epollsig_linux.cc965 static void sig_handler(int sig_num) { argument
967 gpr_log(GPR_INFO, "Received signal %d", sig_num);
/external/toybox/android/linux/generated/
Dglobals.h678 int sig_num; member
/external/toybox/android/device/generated/
Dglobals.h678 int sig_num; member
/external/toybox/android/mac/generated/
Dglobals.h678 int sig_num; member
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c1795 static void install_handler(int sig_num, void (*sig_handler) (int sig)) in install_handler() argument
1798 sigaction(sig_num, NULL, &sigact); in install_handler()
1803 sigaction(sig_num, &sigact, NULL); in install_handler()