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 can I reference ProcessInfo's members and ProcessCE in my Windows CE util?

I found this code from CathalMF here: ProcessInfo[] list = ProcessCE.GetProcesses(); foreach (ProcessInfo pinfo in list) { if (pinfo.FullPath.EndsWith("MyExe.exe")) pinfo.Kill(); } ...and modified it to my ends (no pun intended) like…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

kill child process if exec fails

I am creating a program that creates many children from one parent. I do not want any more children to be created, if there was an error executing exec. The following code still continues to create children even after an exec failure. void…
dgamma3
  • 2,333
  • 4
  • 26
  • 47
0
votes
1 answer

CI with Jenkins: restart python bjoern server with Jenkins shell script

I've got a Jenkins hooked up to a Bitbucket repository. When something is pushed to the repository the Jenkins starts a job. This job gets all data from the repository (server.py: which is basically a bjoern server). What I want to do now is…
Fauphi
  • 360
  • 1
  • 2
  • 11
0
votes
1 answer

Kill all processes with certain name after given time

I am trying to kill all processes that have name 'reg.php' that are older than 60min. I do something similar to remove orphaned cookie files find /cookies/ -type f -mmin +60 -delete So basically like that but to kill the orphaned processes. Would…
PixsouL
  • 11
  • 1
  • 3
0
votes
1 answer

Trouble sending and handling signals with children processes in C

The parent process forks two children, each replace SIGUSR1 and SIGUSR2 signal respectively. The parent process replace SIGINT signal, on catching it, send SIGUSR1 and SIGUSR2 to its children respectively. The expected output when Ctrl-C is pressed…
Zizheng Wu
  • 646
  • 1
  • 12
  • 21
0
votes
1 answer

Intermittently can't kill a process if it runs too long

Here or there I have found Cleanmgr.exe and Ccleaner to hang. When they do, typically the CPU usage is upwards of 90%+. The hangs are intermittent and hard to reproduce, but when they hang, task manager has reported running them running for over 8…
0
votes
1 answer

How to properly sigint a bash script that is run from another bash script?

I have two scripts, in which one is calling the other, and needs to kill it after some time. A very basic, working example is given below. main_script.sh: #!/bin/bash cd "${0%/*}" #make current working directory the folder of this script ./record.sh…
koenlek
  • 77
  • 1
  • 6
0
votes
3 answers

How to kill a process I ran from a disconnected ssh

I logged in to a server using ssh and ran a long running process (load table from mysql dump file). The ssh connection got disconnected, and now when I'm connecting again the jobs command doesn't show this process (although it is still running). How…
Noam
  • 3,341
  • 4
  • 35
  • 64
0
votes
4 answers

Kill or stop a endless/not-returning-value thread in Java

I have a function in Java. It normally returns a value after it completes its task. However, in some conditions it returns nothing. I create a runnable and run this function as a thread. However, because of its not returning a value, it does not…
JoshuaJeanThree
  • 1,382
  • 2
  • 22
  • 41
0
votes
2 answers

Killing Subshell with SIGTERM

I'm sure this is really simple, but it's biting me in the face anyway, and I'm a little frustrated and stumped. So, I have a script which I've managed to boil down to: #!/bin/sh sleep 50 | echo If I run that at the command line, and hit Ctrl-C it…
psycotica0
  • 3,130
  • 2
  • 19
  • 16
0
votes
1 answer

Continue service when app is killed

I have an activity with two buttons (ON and OFF): when I click the ON button a service starts. When I click the OFF botton the service stops. Now, my service does not have problems apart from when I kill the app from "Recent Apps" because in this…
Grancein
  • 642
  • 10
  • 19
0
votes
1 answer

Killing a process using sh and bash

I need to kill a process using the same command in both sh and bash (In a script). Normally I would do the following in bash: SCRIPT=$(basename $0) #So the script knows itself killall -9 $SCRIPT #Kill itself However this does not seem to work using…
Atomiklan
  • 5,164
  • 11
  • 40
  • 62
0
votes
1 answer

CoreBluetooth willRestoreState not called in iOS 7.1

Will restore state delegate method is not called when system kills the app in background i am using the below code in button action to check system kill kill(getpid(), SIGKILL); When i kill the app using this function but willrestore state delegate…
ashok vadivelu
  • 493
  • 5
  • 12
0
votes
0 answers

how do you pkill a jar with sigterm

i have a process like this: actor 19130 1 0 16:13 pts/0 00:00:02 java -jar /home/opt/zimbraconnector/zimbraconnector.jar i tried to kill it with a signal : pkill -SIGTERM -f zimbraconnector.jar but its not working. Any clue whats wrong…
Ikthiander
  • 3,917
  • 8
  • 37
  • 54
0
votes
1 answer

Killing query created by another application

I have a Java application where I want to be able to kill queries made to several databases. I know how to get the queries in the information_schema.processlist, but the problem is I don't know how to kill those queries. Usually I would do it using…
Anniina
  • 1
  • 1