Top "Signals" questions

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

Using sigaction(), c

I was doing a little reading about sigaction() (sources are from my course notes) and I'm not sure I understand …

c unix signals bitmask systems-programming
Detect when console application is closing/killed?

I wanted to make a safe exit for my console application that will be running on linux using mono but …

c# mono console signals kill
How to gracefully terminate an asyncio script with Ctrl-C?

I've read every post I could find about how to gracefully handle a script with an asyncio event loop getting …

python signals python-asyncio sigint
Who uses POSIX realtime signals and why?

I am not being flip I really don't get it. I just read a whole bunch of material on them …

c linux embedded signals posix
How to prevent SIGPIPE or prevent the server from ending?

A quite standard C++ TCP server program using pthreads, bind, listen and accept. I have the scenario that the server …

c++ c sockets client-server signals
QThread finished() connected to deletelater of a QObject

I have thought a lot and read lot of articles before asking this question here. None of the articles gave …

signals qthread qobject quit
How can I override the keyboard interrupt? (Python)

Is there anyway I can make my script execute one of my functions when Ctrl+c is hit when the …

python signals interrupt
How to trap exit 1 signal in Shell script?

I would like to try trapping signal 1 but fail #!/bin/bash # capture an interrupt # 0 trap 'echo "Exit 0 signal detected..."' 0 …

shell signals exit-code bash-trap
How do I mock a django signal handler?

I have a signal_handler connected through a decorator, something like this very simple one: @receiver(post_save, sender=User, …

python django mocking signals django-signals
What are the general causes of abort signal?

I have an application, in C++ over running linux, which on exit gets abort signal. Before I go after the …

linux signals abort