Top "Signals" questions

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

What does WEXITSTATUS(status) return?

I am trying to understand how WEXITSTATUS(status) works. I have come across a piece of code where the return …

c unix signals posix fork
Android Fatal Signal 11

In the app I'm developing on Android, I keep getting a Fatal Signal 11 error. I think it's something to do …

java android crash signals
Simple Signals - C programming and alarm function

#include <stdio.h> #include <signal.h> void ALARMhandler(int sig) { signal(SIGALRM, SIG_IGN); /* ignore this …

c signals
Signal handling in pthreads

I have created a pthread, and installed a signal handler inside that, same way as we do in main( ) function. …

c pthreads signals
How to capture Control+D signal?

I want to capture the Ctrl+D signal in my program and write a signal handler for it. How can …

c linux unix signals
What does fflush(stdin) do in C programing?

I am very new to C programming and I am trying to understand how fflush(stdin) really works. In the …

c operating-system signals
No overload matches this call. Type 'string' is not assignable to type 'Signals'

I am using typescript to build a microservice and handling signals as well. The code was working fine till a …

javascript node.js typescript signals
Ctrl + C interrupt event handling in Linux

I am developing an application that uses C++ and compiles using Linux GNU C Compiler. I want to invoke a …

c++ c linux operating-system signals
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
Python: Catch Ctrl-C command. Prompt "really want to quit (y/n)", resume execution if no

I have a program that may have a lengthy execution. In the main module I have the following: import signal …

python signals copy-paste sigint