sigkill

How to bind a key to sigkill in bash?

I'm developing my application (on Linux) and sadly it sometimes hangs. I can use Ctrl+C to send sigint, but my program is ignoring sigint because it's too far gone. So I have to do the process-killing-dance: Ctrl+Z $ ps aux | grep process_name $ kill -9 pid Is there a way to configure bash to send the kill signal to the current proces...

What is the SIGKILL permissions policy?

What is the SIGKILL permissions policy? I assume I can't kill something of the kernel, or of some other user, while running on non-root, but I haven't found any document about this. ...

Killing the child processes with the parent process

I have a program spawning and communicating with cpu heavy, unstable processes, not created by me. If my app crashes or is killed by sigkill, I want the subprocesses to get killed as well, so the user don´t have to track them down and kill them manually. I know this topic has been covered before, but I have tried all methods described, ...

What does program received signal: SIGKILL mean when profiling an app running on device and using the xcode profiler to detect leaks

What does program received signal: SIGKILL mean when profiling an app running on device and using the xcode profiler to detect leaks? My app broke on a line calling drawInRect on a UIImage instance top of call stack is CGGStateCreateCopy ...

Solaris 10: fast detection of SIGCHLD / process exiting

On Solaris 10, I have a parent and child process. I kill the child process with kill -KILL. I want the fastest possible detection of this in the parent process (this is a master/slave system and the goal is for the parent to request its backup to take over as fast as possible). The parent process needs to know that the child has start...

How to gracefully handle the SIGKILL signal in Java

How do you handle clean up when the program receives a kill signal? For instance, there is an application I connect to that wants any third party app (my app) to send a finish command when logging out. What is the best say to send that finish command when my app has been destroyed with a kill -9? edit 1: kill -9 cannot be captured. Th...

iPhone app running Simulator 4.0 received Sigkill

I just got the iPhone SDK 4 and I'm trying to leave off developing an app I was working on before. So I implemented both -(void)applicationDidEnterBackground:(UIApplication *)application and - (void)applicationWillTerminate:(UIApplication *)application When I click the home button in the simulator 4.0, it seems to work okay. The app ...

Perl script is getting killed during sleep()

I have a quite simple perl script, that in one function does the following: if ( legato_is_up() ) { write_log("INFO: Legato is up and running. Continue the installation."); $wait_minutes = $WAITPERIOD + 1; $legato_up = 1; } else { my $towait = $WAITPERIOD - $wait_minutes; write_...

Signal passing to managed processes using supervisord

I am using supervisord to spawn and manage a FastCGI application that I am writing in C for a linux target. I have a signal handler that gracefully exits my application when SIGINT is received. I have verified that the signal handler works as desired by running the app in a terminal window and issuing Ctrl-C to exit. When issuing a "sh...

[searchbar resignFirstResponder] will lead to "Program received signal: “SIGKILL”."

I have a UITableView, where I extend/shrink the cells with the following code. I save the last 2 indexPaths to perform a reloadRowsAtIndexPaths: on it. Now I added a UISearchBar to the header for section 0. If I tab the searchBar, a KeyBoard is displayed on top of the UITableView — so far so good. But I want the user to be able to touc...

SIGKILL signal Handler

Hi, I have a requirement to write to a log file on reception of any terminate command like SIGTERM AND SIGKILL. I can register for SIGTERM but how can handle the SIGKILL signal? ...