signal-handling
Masking signal when global variables are being updated
I am aware that i can mask a signal from being raised when handler is executing (by using sa_mask). However, i would like to know how to mask a signal when i am updating some global variables.[详细]
2023-04-10 15:53 分类:问答How to fire Java method using bash
Suppose I launch a Java application: java -cp whatever.jar com.example.Start Process launches ok and keeps running with PID 1314.[详细]
2023-04-07 08:48 分类:问答Restoring original signal in sigaction
I have sigaction defined and it works fine. However I want to restore the original signal after my act开发者_StackOverflowion is completed. This is my sigaction:[详细]
2023-04-05 02:59 分类:问答Threaded perl and signal handlers
I am using the Thread::Pool module in perl to parallelize some perl code.This process takes a while and occasionally I will kill it from the command line with a SIGINT.Doing so causes the program to e[详细]
2023-04-04 23:31 分类:问答How do you intercept a keyboard interrupt (CTRL-C) in Jython?
This is what I\'ve tried... from sun.misc import Signal from sun.misc import SignalHandler class InterruptHandler(SignalHandler):[详细]
2023-04-04 18:58 分类:问答Is it possible to terminate only the one thread on receiving a SIGSEGV?
I have an application which starts multiple threads. I am using a signal handler to catch the signals.[详细]
2023-04-01 23:04 分类:问答kill is unsafe respect to signals - any alternative?
I read that kill is unsafe respect to signals here. What else should I use if I want to kill 开发者_StackOverflow中文版child process as part of clean up inside my signal handler? What are my alterna[详细]
2023-03-26 16:08 分类:问答CTRL+C is not killing my program
I have a program which forks a child. I am trying to catch following signals: SIGINT, SIGPIPE and SIGTERM.[详细]
2023-03-26 05:30 分类:问答How are asynchronous signal handlers executed on Linux?
I would like to know exactly how the execution of asynchronous signal handlers works on Linux. First, I am unclear as to which thread executes the signal handler. Second, I would like to know the step[详细]
2023-03-26 04:49 分类:问答Ncurses: Detecting if F1 key pressed and using signals
i am trying to learn ncurses library and i came up with code below: #include <ncurses.h> #include <stdlib.h>[详细]
2023-03-22 21:50 分类:问答