I have a pthread that runs in a loop, calling accept() in a blocking manner. Is there any way to interrupt that call from another thread? Everything points to sending the thread a signal, but apparent
I run this script: t = fork do Signal.trap \"INT\" do puts \"child\" exit end sleep 10 end Signal.trap \"INT\" do
There is a daemon which has two threads: th1, th2. th2 reads a socket using read(2). If I kill the daemon with SIGTERM, th1 catches and handles the signal (sets the termination flag), after that the
I would like to delete an item from a QListView when the delete key is pressed. I know I can override QListView::keyPressEvent but I need to do the deletion from a different class. Is there any signal
#include <signal.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h>
Is there a way to get signal information (which signals are enabled, which are blocked, what are the handlers/options) for the process in gdb? There\'s info signals, but that gives me gdb\'s signal ha
How can I set a variable of type long (on 64 bit machine = 8 bytes) inside a signal handler? I\'ve read that you can only use variables of type sig_atomic_t, which is actually implemented as volatile
I am having a class A, parent of class B a开发者_运维百科nd class C. I have signals: declared and used in class B and class C. But when i try to write other signals: in class A, its giving me vtable r
I need to investigate/test the behavior of some code on Linux under conditions where close might be interrupted by signal handlers (either with or without SA_RESTART). What is the most convenient setu
I am getting segmentation fault despite having a signal handler for SIGSEGV. The first time data is written to protected memory, I开发者_StackOverflow社区 can see that signal handler is called, but be