signals
C using Signals to stop child processes
My current program is creating child processes and giving them work (CPU intensive work). The main() sits there and waits for the child processes to send data via pipes (using select).[详细]
2023-04-13 08:11 分类:问答Paramiko and exec_command - killing remote process?
I\'m using Paramiko to tail -f a file on a remote server. Previously, we were running this via ssh -t, but that proved flaky, and the -t caused issues with our remote scheduling system.[详细]
2023-04-12 22:11 分类:问答How does a process executing in kernel space come to know of occurrence of unexpected (asynchronous) events?
I have two questions: 1) Kernel-space process: When a process is executing in kernel mode, it does not receive any signals.[详细]
2023-04-12 07:51 分类:问答How to send a signal to a process in C?
I need to send a signal to a process and when the process receives this signal it doe开发者_Python百科s some things, how is this best achieved in C?The way to send a signal to a process is kill(pid, s[详细]
2023-04-11 20:40 分类:问答Is it safe to use std::bind with boost::signals2?
Is it safe to use std::bind to pass a member function to boost::signals2::signal::connect()? In other words, is boost::bind and std::bind interchangeable?[详细]
2023-04-11 17:16 分类:问答Using sigtrap within a perl module, how do I get the trap received back in the object context?
Have the following in my m开发者_StackOverflowodule\'s BEGIN section: use sigtrap qw(handler shutdown normal-signals);[详细]
2023-04-11 06:07 分类:问答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 分类:问答Override Ctrl-C
I am supposed override the CtrlC signal and use it to print a message. It is not supposed to end the program.[详细]
2023-04-10 15:24 分类:问答Django: base model signal handler doesn't fire
In the following sample code: from django.db import models from django.db.models.signals import pre_save[详细]
2023-04-10 03:04 分类:问答Linux: Snoop a signal without trashing the registers for the subsequent core dump?
When I get coredump-causing signal, I want to run my own handler to copy the siginfo_t and ucontext_t structures to global variables, so that they may be accessed in the core dump. Currently at the en[详细]
2023-04-09 22:45 分类:问答