Top "Signals" questions

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

How to send signal to program run in a docker container?

I have a program run in a docker container with detached mode. So how to send a signal such as …

linux signals docker
SIGCHLD Signal Processing

In Unix, when a child process in background terminates, it sends a SIGCHLD signal to the parent to inform it …

c linux unix signals sigchld
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
Python cross correlation

I have a pair of 1D arrays (of different lengths) like the following: data1 = [0,0,0,1,1,1,0,1,0,0,1] data2 = [0,1,1,0,1,0,0,1] I would like to get …

python matlab signals correlation
SIGHUP for reloading configuration

According to signal(7), SIGHUP is used to detect hangup on controlling terminal or death of controlling process. However, I have …

linux unix configuration signals reload
SIGTERM unable to kill process

I have a single-threaded process which is not dying on kill -TERM. The process signal mask does not show that …

signals kill sigkill sigterm
How to handle the signal in python on windows machine

I am trying the code pasted below on Windows, but instead of handling signal, it is killing the process. However, …

python windows signals
How can I tell in Linux which process sent my process a signal

I have a java application that got SIG TERM. I want to know the pid of the process that sent …

linux signals
C++11 observer pattern (signals, slots, events, change broadcaster/listener, or whatever you want to call it)

With the changes made in C++11 (such as the inclusion of std::bind), is there a recommended way to implement …

c++ boost c++11 signals observer-pattern
How to send an interrupt signal

I'm trying to implement a function that would call an interrupt signal in Go. I know how to intercept interrupt …

go signals interrupt interrupt-handling