Questions tagged [sigkill]
The sigkill tag has no summary.
20 questions
0
votes
1
answer
245
views
How to send SIGQUIT or SIGINT using bash shell to a shell script
According to BASH manual page,
When Bash receives a SIGINT, it breaks out of any executing loops. In
all cases, Bash ignores SIGQUIT.
So if there was a shell script, started from bash shell, to ...
4
votes
1
answer
755
views
How comes a socat listener knows that the process that connected to it has been KILLed?
As far as I understand, once a TCP connection is established, there's no actual flow of data unless one of the two ends actually sends a message, they are both blocked on a call to receive a message. ...
4
votes
1
answer
1k
views
What is the correct way to unconditionally kill a process?
I have two hotkeys for interactively looking up and killing a process on Linux:
bindsym $mod+k exec --no-startup-id \
"ps axo pid,cmd | sed 1d | dmenu -i -l 20 | awk '{print $1}' | xargs kill&...
2
votes
1
answer
629
views
Process appears with square brackets ([]) around name after being SIGKILL'd
I am executing and killing a process as follows:
python some_script.py &; pid=$!; sleep 5; kill -9 $!; ps -o pid,sid,uid,state,start,command
In other words: I execute a script in the background, ...
2
votes
1
answer
842
views
I wish to kill a service with a "sytemctl kill logstash.service" but SIGTERM is received by the service, instead of a SIGKILL. How do I send SIGKILL?
A new logstash version I'm using can't stop, attempting to connect to Elastic all the time, while it can't (an authentication trouble, I will resolve later).
a sudo systemctl stop logstash.service isn'...
-1
votes
1
answer
1k
views
How to prevent timeout command to kill?
My process a.out is starting by a timeout command similar to:
timeout 1 ./a.out - < file.txt
It runs on a server and I have no control over that because it is part of a shell script that being ...
0
votes
2
answers
1k
views
Signals table in /proc/[PID]
I am trying to overwrite or change the Signals of a process. As I guess there is a table of signals in every process separately.
Is there anything like that in the /proc folder?
Thank you for your ...
0
votes
1
answer
550
views
Intercepting system signal as a strategy to prevent kill calls from taking effect
As a follow up to this question, I am correct that (4) (quote below) is the farthest I can get ?
in my app (a .NET app which runs as a systemd daemon), intercept the kernel signal sent to the process ...
0
votes
2
answers
599
views
Is there a way to trigger the closing of one program by closing another? A shell script perhaps?
So, my situation is this: I have created a launcher, key bindings and an alias that opens GLava and CMus in a drop-down terminal at the same time, using this shell script:
#!/bin/bash
c=$(ps -e | ...
0
votes
1
answer
401
views
SIGKILL vs cutting of power
What are differences for running program between sudden cutting of power and SIGKILL?
We have microservices that use database. I am tasked with creating automatic test that simulates sudden power off (...
0
votes
0
answers
480
views
killall and kill doesnt work
I scanned using ClamAV and found these files:
[root@ip-172-31-23-37 ~]# sudo clamscan --infected --recursive --exclude-dir="^/sys" /
/tmp/.X25-unix/dota3.tar.gz: Multios.Coinminer.Miner-...
0
votes
1
answer
569
views
Why does su command ignore SIGSTOP?
After entering su when I prompted to enter a password:
user@debian:~$ su
Password:
I can't send SIGSTOP (ctrl+Z) from my keyboard (the same terminal) - nothing happens. So the only way to exit is to ...
0
votes
1
answer
227
views
Terminator layout with command that survives sigkill?
Terminator allows custom layouts with a command such as bash -lc 'npm start'; bash
However, triggering SIGKILL (CONTROL-C) will kill part of the terminal and mess up your layout. SIGQUIT works but ...
9
votes
2
answers
13k
views
What is the delay between SIGTERM and SIGKILL on shutdown?
When a Unix-like system is shut down normally, e.g. using halt, shutdown, poweroff etc. or the GUI equivalents, it will try to exit all processes gracefully first by emitting a SIGTERM signal to them. ...
1
vote
1
answer
4k
views
Must SIGKILL (and SIGTERM) be explicitly sent to a specified process?
Reading Gilles' answer,
SIGHUP is about the same as SIGTERM in terms of harshness, but it has a specific role because it's automatically sent to applications running in a terminal when the user ...
51
votes
1
answer
29k
views
What does a program do when it's sent SIGKILL signal?
When I used killall -9 name to kill a program, the state become zombie. Some minutes later, it stopped really.
So, what's happening during those minutes?
6
votes
1
answer
9k
views
Is there a way to prevent sigkill to reach a process?
I know that a process cannot prevent SIGKILL.
But is there an external way to temporarily prevent SIGKILL to reach a (specific) process? (something like dropping packets by firewalls).
0
votes
1
answer
360
views
Email sent to root: "Output from from your job 1843" - "Killed"
I run a Sheevaplug (small ARM server) with Debian 9. It does not have any third-party repos enabled in sources.list / sources.list.d.
I have a backup script which runs as root, and uses at. I think ...
-1
votes
1
answer
3k
views
ctrl+c closes terminal window completely - why / how?
I have a process, and when I issue ctrl+c in the terminal, it closes the terminal window completely, anybody know why that might be happening?
This is how the process is now started:
exec "$(dirname ...
8
votes
3
answers
20k
views
How do I kill an IRQ process in Linux?
I can not kill irq/${nnn}-nvidia by kill -9 or pkill -f -9.
Does anyone how to kill or stop those process?
(I am using Ubuntu 16.04, if that is relevant.)