Top "Signal-handling" questions

In the C Standard Library, signal processing defines how a program handles various signals while it executes.

How to write a signal handler to catch SIGSEGV?

I want to write a signal handler to catch SIGSEGV. I protect a block of memory for read or write …

c linux system-calls signal-handling mprotect
Providing/passing argument to signal handler

Can I provide/pass any arguments to signal handler? /* Signal handling */ struct sigaction act; act.sa_handler = signal_handler; /* some …

c signals signal-handling
Which signal does ctrl-x send when used in a terminal?

On Linux/Unix there are signals. The CtrlC one (SIGINT) is obvious to me. Now, in some other applications there …

linux bash signals signal-handling ctrl
What is the difference between SIGSTOP and SIGTSTP?

Just wondering about the difference between SIGSTOP and SIGTSTP signals.

unix signals signal-handling
Segmentation fault handling

I have an application which I use to catch any segmentation fault or ctrl-c. Using the below code, I am …

c linux signals signal-handling
Where should signal handlers live in a django project?

I have just started implementing signal listeners in a django project. While I understand what they are and how to …

django signal-handling
Python - Trap all signals

In python 2.6 under Linux, I can use the following to handle a TERM signal: import signal def handleSigTERM(): shutdown() signal.…

python linux signal-handling
Is it possible to use signal inside a C++ class?

I am doing something like this: #include <signal.h> class myClass { public: void myFunction () { signal(SIGIO,myHandler); } void …

c++ signal-handling
python: windows equivalent of SIGALRM

I have this decorator: def timed_out(timeout): def decorate(f): if not hasattr(signal, "SIGALRM"): return f def handler(…

python windows signals alarm signal-handling
compile errors using signal.h in Linux

I'm writing a shell program that must handle signals. My relevant signal handling related code is as follows: #include <…

c linux signals system-calls signal-handling