Top "Signals" questions

A signal is a notification to a process that an event occurred.

How do I capture SIGINT in Python?

I'm working on a python script that starts several processes and database connections. Every now and then I want to …

python controls signals
What killed my process and why?

My application runs as a background process on Linux. It is currently started at the command line in a Terminal …

linux process kill signals
What's the best way to send a signal to all members of a process group?

I want to kill a whole process tree. What is the best way to do this using any common scripting …

linux shell process signals
How to prevent SIGPIPEs (or handle them properly)

I have a small server program that accepts connections on a TCP or local UNIX socket, reads a simple command …

c io signals broken-pipe sigpipe
Catch Ctrl-C in C

How does one catch Ctrl+C in C?

c signals
How to trigger SIGUSR1 and SIGUSR2?

I'm getting acquainted with signals in C. I can't figure out what kind of signals SIGUSR1 and SIGUSR2 are and …

c signals
How to suspend/resume a process in Windows?

In Unix we can suspend a process execution temporarily and resume it with signals SIGSTOP and SIGCONT. How can I …

windows process signals
Can I send a ctrl-C (SIGINT) to an application on Windows?

I have (in the past) written cross-platform (Windows/Unix) applications which, when started from the command line, handled a user-typed …

windows signals sigint
Is it possible to capture a Ctrl+C signal and run a cleanup function, in a "defer" fashion?

I want to capture the Ctrl+C (SIGINT) signal sent from the console and print out some partial run totals. …

signals go sigterm