All Questions

520
votes
19answers
455411 views

Is there any way to kill a Thread in Python?

Is it possible to terminate a running thread without setting/checking any flags/semaphores/etc.?
413
votes
12answers
232783 views

Who "Killed" my process and why?

My application runs as a background process on Linux. It is currently started at the command line in a Terminal window. Recently a user was executing the application for a while and it died mysteriou...
43
votes
6answers
98257 views

How to kill an application with all its activities?

Possible Duplicate: Quitting an application - is that frowned upon? I want to offer the user an option to exit the application as I need to delete some sensitive data, which is stored in th...
15
votes
2answers
8074 views

Python: how to kill child process(es) when parent dies?

The child process is started with subprocess.Popen(arg) Is there a way to ensure it is killed when parent terminates abnormally? I need this to work both on Windows and Linux. I am aware of this so...
66
votes
9answers
136838 views

How do I kill a process using Vb.NET or C#?

I have a scenario where I have to check whether user has already opened Microsoft Word. If he has, then I have to kill the winword.exe process and continue to execute my code. Does any one have any...
63
votes
13answers
132516 views

Kill process by name?

I'm trying to kill a process (specifically iChat). On the command line, I use these commands: ps -A | grep iChat Then: kill -9 PID However, I'm not exactly sure how to translate these commands ...
13
votes
3answers
11047 views

Java tool/method to force-kill a child process

I am looking for a Java tool/package/library that will allow me to force-kill a child process. This tool/package/library must work on Windows platform (mandatory). Support for Linux/Unix is desired...
102
votes
5answers
40300 views

What does `kill -0 $pid` in a shell script do?

Basically, what signal does '0' represent, because here I see SIGNAL numbers starting from 1.
29
votes
5answers
103625 views

How do I kill an Activity when the Back button is pressed?

I got an Activity that when it starts, it loads an image from the internet. In an effort to save memory, when the Activity is left by the back button being pressed, I want the activity to dump all dat...
151
votes
8answers
122720 views

linux: kill background task

How do I kill the last spawned background task in linux? Example: doSomething doAnotherThing doB & doC doD #kill doB ????

Previous Next