Questions tagged [sigkill]

16 questions
48
votes
1 answer

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?
haikun he
  • 583
  • 1
  • 4
  • 4
7
votes
3 answers

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.)
TMit
  • 73
  • 1
  • 1
  • 3
5
votes
1 answer

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. After some time it will send SIGKILL to the…
5
votes
1 answer

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).
gopy
  • 351
  • 3
  • 10
2
votes
1 answer

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't enough to stop it, so I've issued a sudo…
Marc Le Bihan
  • 1,353
  • 1
  • 11
  • 24
1
vote
1 answer

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 disconnects from that terminal (etymologically,…
Tim
  • 98,580
  • 191
  • 570
  • 977
0
votes
2 answers

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 time.
superuser
  • 1
  • 1
0
votes
1 answer

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 upon running kill (perhaps calling sigaction) so…
Veverke
  • 338
  • 3
  • 16
0
votes
2 answers

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 | grep -c xfce4-terminal) if [ $c -gt 0 ] …
0
votes
1 answer

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 (not nice shutdown but unplugging from power…
MateuszL
  • 103
  • 2
0
votes
0 answers

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-6781728-2 FOUND /tmp/.X25-unix/.rsync/a/kswapd0:…
0
votes
1 answer

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 type some (right or wrong) password. Why can't I…
z0lupka
  • 275
  • 2
  • 11
0
votes
1 answer

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 that's hard to remember. Is there a way to have a…
Ray Foss
  • 952
  • 1
  • 11
  • 23
0
votes
1 answer

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 something broke on Sep 13, because I am getting…
sourcejedi
  • 48,311
  • 17
  • 143
  • 296
-1
votes
1 answer

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 invoked by the server automatically. Is there any…
user174174
  • 479
  • 1
  • 6
  • 13
1
2