Kill is an operation of removing an object or process from memory so that other processes/variables can use them.
Questions tagged [kill]
1603 questions
0
votes
1 answer
Killing an existing process
I am trying to build a script that starts, and later stops a process:
Public Class Form1
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Process.Start("C:\batchfile.bat")
End…

user2082130
- 1
- 1
0
votes
1 answer
How do I end a process using Visual Basic?
Basically, I've made a program that has both "RUN BOT" and "KILL BOT" buttons. My question is what code do I use to 'Kill' the bot or in other terms close out the "batchfile.bat" that it's running when the button "RUN BOT" is clicked. Appreciate all…

user2082130
- 1
- 1
0
votes
1 answer
what's the difference when calling kill from a shell script or directly in the terminal
I'm trying to kill a process by ID from this shell script.
# based on
# http://stackoverflow.com/questions/6437602/shell-script-to-get-the-process-id-on-linux
output=`ps -ax|grep Ad[o]be\ After\ Effects\ CS6`;
# set -- parses the ps output into…

fabianmoronzirfas
- 4,091
- 4
- 24
- 41
0
votes
2 answers
Problems sending/handling signals across two processes on same computer - C programming
I'm having trouble handling signals between two process I have running on my computer. scheduler.c is sending the signals and producer.c receiving them. The producer is supposed to print "Printing n" where n is incremented by one each time a SIGUSR1…

midma101
- 139
- 1
- 11
0
votes
1 answer
How can I kill a process which was reparenting itself to init?
I have a program which reparenting itself to init, so I can't use the following code:
pid=Process.spawn("xxx")
Process.wait(pid) #started xxx with pid,
#but it respawned itself to
#pid2 which has the ppid set to…

Istvan
- 7,500
- 9
- 59
- 109
0
votes
1 answer
onActivityResult() when the app gets killed in background
While i am running an application the activity gets killed due to memory issue.
I am calling startActivityForResult() method in my activity to start camera. It is showing unusual behavior, when the calling activity gets killed in background. Some…

Elezabeth Mathew
- 161
- 2
- 14
0
votes
1 answer
Can I safely kill a ton of my /usr/sbin/apache2 -k start PIDs?
Is it "safe" to mass-kill every PID on my websites-serving dedi (debian squeeze) matching this (I know this is Apache's) ?
www-data /usr/sbin/apache2 -k start
I'll spare you the details, but these PIDs are the ultimate non-removed remnants of an…

EcchiOli
- 802
- 9
- 11
0
votes
0 answers
Unix: programmatically checking process existence by name AND process id
I would like to define a method called:
bool checkIfProcessExists(pid_t processId, const std::string &processName)
{
return 0 == kill(processId, 0);
}
The deficiency with the code above is that it could provide a false positive. (i.e. the…

casio car
- 129
- 1
- 8
0
votes
1 answer
PHP shell_exec() terminate process
Whenever I execute command via shell_exec() in PHP it automatically starts new process. Does PHP automatically terminate that process when the command is executed?
Thanks!

Povilas
- 3
- 1
0
votes
2 answers
Shell: Return value of a non-child process
In shell script I am trying to wait for non-child process. I got reference on how to do it from:
WAIT for "any process" to finish
My shell script structure is:
Main.sh
func1(){
return 1
}
func2(){
# Wait for func1 to finish
while kill -0…

user613114
- 2,731
- 11
- 47
- 73
0
votes
2 answers
jQuery window.location.replace keeps looping
I'm using window.location.replace() with jQuery to redirect to a new page in wordpres if you got a older browser in either Internet explorer or Firefox due to my html5 layout.
var browser = jQuery.browser;
var version =…

fragstar
- 65
- 1
- 10
0
votes
0 answers
Kill(filepath) throws exception when no file exists
Kill(filePath) throws an exception when no file exists, but only when I install the compiled app in a separate XP environment.
When I run the app out of the VS2005 IDE it doesn't throw an exception, which is the behaviour I would prefer.
Why is this…

CJ7
- 22,579
- 65
- 193
- 321
0
votes
3 answers
Reset JavaScript function that self-executes
I've got a simple function that loops itself. I'd like to kill kill it and then re-execute it based on user action. Not sure what the best way to do it is.
Here's what I've got:
function loopor(){
$slider.next();
setTimeout(loopor,…

technopeasant
- 7,809
- 31
- 91
- 149
0
votes
2 answers
Continue uploading even when the app gets killed(Android)
I want an upload operation to get completed even when the application is running in background. The process should get completed even if the application gets killed while opening other application. Could anyone pls suggest me some solutions?

Elezabeth Mathew
- 161
- 2
- 14
0
votes
1 answer
How to create a register-like function in Emacs
I would like to create a function using some features of the kill-ring and registers.
Basically I want to create a new mode in which r followed by p should put the paragraph at point to a list ( r w should put the word at point in that list).
Then,…

PascalVKooten
- 20,643
- 17
- 103
- 160