Questions tagged [kill-process]

This tag refers to the action of terminating (aborting) a process.

Use this tag for questions related to killing a specific process on a system.

701 questions
-1
votes
1 answer

Which event will be fire on exe if I close the main process using Task Manager?

My problem is what event will file after i kill the Main Process? I have no problem when killing the Sub Process. When i kill the Sub frmAdmin Process, For eg. This event will be fire, Private Sub frmAdmin_FormClosing(ByVal sender As Object, ByVal…
-1
votes
1 answer

How to drop a LISTEN port in CentOS7? the port dose not seem to binding to any process

I would like to drop a port which is currently in state LISTEN. This is when I type netstat -anp | grep LISTEN | grep 8080. (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it…
Juneyoung Oh
  • 7,318
  • 16
  • 73
  • 121
-1
votes
2 answers

In C++11 the signal.h header has no kill function

I just tried compiling code that I wrote a while ago using Gnu g++ in C++11 mode, to see if the code will need reworking anytime soon (I also plan to test it in C++17 mode for the same reason). I found that the kill() function caused a compiler…
Andy Rushton
  • 87
  • 1
  • 2
-1
votes
1 answer

Is it possible for an Android app to kill its own process

Is it possible for an Android app to kill its own process? Say, as an anti-tampering feature, the app detects that its integrity has been breached, say by checking the app signer cert. It then exits the app, but the app process still lingers in…
user1118764
  • 9,255
  • 18
  • 61
  • 113
-1
votes
1 answer

ZwAssignProcessToJobObject : ACCESS_DENIED

I'm trying finalize a determinated process (reference) but before it i need ZwAssignProcessToJobObject(), I made this following small code to demonstrate my problem, where Status is returning 0xC0000022 (ACCESS_DENIED). Is there a way to solve…
user3273026
-1
votes
1 answer

How to stop a ksh?

I have a ksh script which I have started but now I want to stop it. The ksh, abc.ksh, takes hours to run and I want it to stop. I found the pid of the ksh using ps -ef and then did kill -9 pid When I did a ps -ef again the ksh is no longer here…
refresh
  • 1,319
  • 2
  • 20
  • 71
-1
votes
2 answers

Terminate subprocess in python doesn't work

I want to terminate a subprocess, but it doesn't work. Here's my code: import os import subprocess p = subprocess.Popen(['gnome-terminal','-e','tshark -i eth0 -w /root/Desktop/test.pcap']) q = subprocess.Popen(['python','avtp2.py']) if q.wait() ==…
crappidy
  • 377
  • 1
  • 5
  • 16
-1
votes
1 answer

Batch script to kill process if string is found in text file

I have a process that writes logs to a acc.txt file and I'm trying to restart the process when a certain string has been found inside of that .txt file. Once the string is found and matches with what I'm looking for, the acc.txt contents should be…
Chris
  • 41
  • 2
  • 10
-1
votes
1 answer

Robotframework: kill the process

I try to write test for GUI app throw Winium + Selenium But main point, that I can't finished process what start throw test. *** Settings *** Library Process Suite Setup suite_setup Suite Teardown suite_teardown *** TestCases *** testcase1 …
-1
votes
2 answers

C - Atomic killpg

I have process which forks a lot. Child processes do lot of stuff and another system calls. When ANY child process gets error from system call, it prints error description to stderr and send SIGUSR1 to group leader (main parent process). SIGUSR1…
Mára Toner
  • 302
  • 2
  • 16
-1
votes
2 answers

How to kill certain process running more than 36 hours and containing certain phrasse in its command?

on the Linux (CentOS 6), i want to kill process containing "pkgacc" in its command (so no exact command but just partial match) if it is running more than 36 hours. There is related question: How do you kill all Linux processes that are older than a…
16851556
  • 255
  • 3
  • 11
-1
votes
1 answer

Where is the prosecc' name for killall in command line in linux

I have such command for running the process. /usr/bin/php /home/hosts/example.com/html/www/protected/cron.php cron MessangerHandler How can I kill this process by its full name, using killall. killall -9 ***what name**** What command it should…
yeryr
  • 57
  • 1
  • 6
-1
votes
4 answers

How to kill the app in android by pressing a button

I was displaying a dialog screen with an EditText field, cancel and ok button in the MainActivity class in onCreate method as below AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("User Login"); alert.setMessage("Enter your…
Shiva Krishna Bavandla
  • 25,548
  • 75
  • 193
  • 313
-1
votes
2 answers

Killing a Java thread by throwing exception

I think killing a thread at precisely the time you want is a problem for many people. I recently ran across a way to kill a thread by throwing an exception. What are your thoughts/inputs on this? Has anyone implemented something like this before?
Jason Ching
  • 1,037
  • 4
  • 19
  • 27
-1
votes
1 answer

Process32Next finishes with ERROR_NO_MORE_FILES

I create a process A which creates a process B. I want to terminate the whole process tree if a certain condition is met, so I follow the instructions provided here: Terminate a process tree (C for Windows) The sample code works fine, it kills the…
KoKa
  • 797
  • 1
  • 14
  • 31
1 2 3
46
47