Questions tagged [kill]

Kill is an operation of removing an object or process from memory so that other processes/variables can use them.

1603 questions
0
votes
1 answer

How do I stop a Thread in Python (I have an endless loop)

The following code is supposed to be for a timer that counts down: from org.csstudio.opibuilder.scriptUtil import PVUtil, ConsoleUtil, ColorFontUtil from java.lang import Thread, Runnable import threading import time startButton =…
user969334
  • 53
  • 4
0
votes
0 answers

Task Factory object Kill method c#

QUESTION: how I can get a process to kill during the middle of the execution of a bat file, I can get it to kill but continues to display result of method. I'm printing the results to console, however, can't get the results and execution path to…
Steve
  • 75
  • 1
  • 1
  • 8
0
votes
2 answers

Trying to kill a nohup process that changes PIDs

I list the PID and then try to kill it using: nohup server & kill However, I keep getting the error: nohup: failed to run command ‘server’: No such file or directory This is because the PID keeps changing! When I try to kill the current…
AllieCat
  • 3,890
  • 10
  • 31
  • 45
0
votes
3 answers

Force a thread to return while asleep

Background I'm currently developing a program using C++11 for the raspberry pi. The basic design (relevant to this question) is: I have a main loop that's awaiting commands from an external source. In the main loop I create an agent (object that's…
Andrew
  • 638
  • 1
  • 6
  • 10
0
votes
2 answers

Android app that kills background processes to save power

I am writing an Andoid app so that when battery life gets below a certain level, a dialog with options of how to save the battery appears. One of those options is to close all background apps/services (processes) using…
0
votes
3 answers

How to kill NSThread while clicking on new tab iOS?

I building an app has 4 tab (Tabbar Controller), and each tab I call a function (updateArray) after 2s. I want to when click on other tab, updateArray() function is kill. My problem is when on tab, updateArray() call after 2s, when I click on other…
NGOT
  • 149
  • 5
  • 12
0
votes
3 answers

error: ‘SIGKILL’ undeclared (first use in this function)

Alright, I was trying to make a simple function to constantly change its PID, but I get this: error: ‘SIGKILL’ undeclared (first use in this function) here is my code: #include int changePID(void) { int pid = fork(); …
D4zk1tty
  • 123
  • 1
  • 3
  • 15
0
votes
1 answer

When I run kill -11 pid, no core file got dumped

I checked the ulimit so it shouldn't be a problem ulimit -c unlimited What else can I check?
Jay Wong
  • 97
  • 1
  • 4
0
votes
1 answer

Node.js http.get 404 kills the app

I successfully wrote app in node.js working with http.get. Problem is, that if page doesn't exist, it make an error that terminates the app. Is any way how to declare timeout. After timeout it should stop waiting for response and let app continue…
user2316602
  • 622
  • 4
  • 9
  • 25
0
votes
2 answers

Shell Script for Killing PID

I run a few processes that I created myself on my Ubuntu Server, and to kill them I run: sudo fuser -n tcp PORT kill -9 PID-DISPLAYED Is there any way I can obtain the PID from a port using a shell script, then kill it by running the shell…
Austin K
  • 539
  • 2
  • 5
  • 13
0
votes
1 answer

Kill -2 or Kill -INT : Make my running script immune to KILL signal 2 or -INT

I have a script: giga.sh (shell script BASH) which is running using PUTTY session. I see most people like to copy using "Control+C" and paste as "Control+V". Few of my wise friends use mouse's right click then copy, then paste and I wondered, don't…
AKS
  • 16,482
  • 43
  • 166
  • 258
0
votes
1 answer

Advanced task killer dont' kill correctly my app

I have create an Android application (functional). My problem is when people use advanced task killer (what is useless), all my variables are wiped but the application is not to kill completely, it is started again but it misses all the data. I…
benji2092
  • 53
  • 1
  • 8
0
votes
3 answers

Using grep with ps -ax to kill numerous applications at once (Mac)

I'm very new to shell scripting. I recently covered a tutorial of using bash with grep. About 5 minutes ago there was, as it happened, a practical application for this function as my browser appeared to have crashed. I wanted to, for practice, use…
Doug Fir
  • 19,971
  • 47
  • 169
  • 299
0
votes
3 answers

How to kill a looping function in jquery

I created a function that iterates over a set of divs, looping, fading in and out the next one. What I am trying to do is to stop it upon either 'click', if/else, or focus. In doing some searching, it seems that I can utilize the setTimeout -…
jremydeaton
  • 133
  • 1
  • 3
  • 13
0
votes
1 answer

pthread_kill ends calling program

I am working on Ubuntu 12.04.2 LTS. I have a strange problem with pthread_kill(). The following program ends after writing only "Create thread 0!" to standard output. The program ends with exit status 138. If I uncomment "usleep(1000);" everything…