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
0 answers
C++ / Unkillable process / Can't debug
I've created a small parser that generates an internal representation of an expression from a string. It does compile correctly, but i just can't debug it. When i try to run it, whether it's in debug mode or not, the console pops-up and immediatly…

Virus721
- 8,061
- 12
- 67
- 123
0
votes
1 answer
cancel() not working, and killBackgroundProcesses neither
I am creating an APK but I have a problem. My APK sends a GET request when it finishes. I have a asynctask class for sending a GET request (GPS). The problem is that when I start the application again I need to kill the background processes of the…

user2415757
- 1
- 1
0
votes
1 answer
Perl thread kill doesn't work
I was playing with this code, from the way the beep is sounding, once the program starts it doesn't stop. I suspect the problem is with $thread->kill('KILL')->detach;.
Any ideas? Or have I done something wrong ?
#!c:/perl/bin/perl
use…

Zubinn Tan
- 1
- 4
0
votes
1 answer
iOS app being terminated issue
I've found that my iOS 5 app is sometimes unexpectedly quited and it does not seem to be due to an uncaught exception, since I've implemented uncaughtExceptionHandler in the app delegate class and I get nothing from there.
If it is because the…

AppsDev
- 12,319
- 23
- 93
- 186
0
votes
0 answers
ubuntu kill java thread
I create some threads:
public class NewUser extends Thread{
public int userID;
public long waitingSeconds;
Timer timer;
public NewUser(int UserID, long WaitingSeconds){
this.userID = UserID;
this.waitingSeconds =…

user1256477
- 10,763
- 7
- 38
- 62
0
votes
2 answers
Stopping a php script that's running in the background
I've been following some tutorials on running and managing php scrips as background process. I've been playing with the script below.

Ben Pearce
- 6,884
- 18
- 70
- 127
0
votes
3 answers
Echo program out to file even if a kill the program (linux)
I have a C program that outputs some information to the console and then goes to infinite loop. I need to run the program on the background and redirect the output to a log file. The redirection works if the program does not have the infinite loop,…

Jesus Vasquez
- 43
- 7
0
votes
1 answer
Kill a thread from another thread
I have this question:
How can I kill a thread (maybe with pthread_cancel()) from another thread?
Here is the sample code.
I need that when I press 1, the other thread gets killed. (I must force the kill from one thread without putting a…

MarkWarriors
- 544
- 2
- 9
- 17
0
votes
1 answer
Anonymous tomcat stopped/killed
My tomcat is being stopped by some users, who used "kill" command to terminate the process, not shutdown.sh. So, how to prevent and track(log) this. Like, user should not able to terminate the process using kill unless he has authentication.

dm90
- 775
- 1
- 10
- 24
0
votes
1 answer
BASH: Explain about kill command
I was looking for a solution about a silent kill command and I successfully found the solution here , in the forum , by the command:
kill -9 "process_name" &> /dev/null
but , my question is:
What does " &> /dev/null " mean?
Any tips and advice will…

Vittorio Chierici
- 167
- 13
0
votes
2 answers
Counting number of processes using AWK
I'm trying to come up with command using AWK which will list down all the processes along with its number of instances running:
I'm using following command
ps axo pid,command | awk -F/ '{print $1, $4}'
and I;m getting following result
1727 …

user1405309
- 397
- 1
- 4
- 11
0
votes
1 answer
How can i get the return code of a killed process in unix?
I have a bash script where i kill a running process by sending the SIGTERM signal to it's process ID. However, i want to know the return code of the process i just sent the signal.
Is that possible?
i cannot use 'wait' because the process to kill…

Mary Jane
- 31
- 1
- 3
0
votes
4 answers
When apache restart, php background process are killed
I have an issue with apache and php.
I call this script in php:
exec("nohup sudo QUIET=y sh foo.sh > /home/tmp/log.txt 2>&1 & echo $!", $res);
Shortly after, the script foo.sh need to restart apache to include new configuration…

user1883264
- 31
- 5
0
votes
3 answers
cygwin kill background process
I can see a process with ps, but it does not appear in "tasklist" (or windows taskmanager).
PID PPID PGID WINPID TTY UID STIME COMMAND
15356 1 16284 10496 pty2 1001 12:59:42 /cygdrive/c/Users/Application1
I…

ManInMoon
- 6,795
- 15
- 70
- 133
0
votes
1 answer
setpgrp/setpgid fails (?), works on Mac OSX, not on Linux
I'm trying to write a program that executes a child command, and does not allow that child to be killed by Ctrl+C.
I've read that I can accomplish this with setpgid/setpgrp.
The following code works on OSX, but on Linux (2.6.32, Ubuntu 10.04)…

OregonTrail
- 8,594
- 7
- 43
- 58