SIGTERM is one of the POSIX mandated signals; it indicates that the process should terminate, which is also the default action for SIGTERM.
Questions tagged [sigterm]
238 questions
0
votes
1 answer
PUMA, trying to stop server, Invalid Signal, number or name
Im trying to stop puma server with a script that i've found here --> script
#!/usr/bin/env bash
# Simple move this file into your Rails `script` folder. Also make sure you `chmod +x puma.sh`.
# Please modify the CONSTANT variables to fit your…

Philip
- 6,827
- 13
- 75
- 104
0
votes
1 answer
Program a unix kill in Java
I am writing a unit test for a Java program, and I need to simulate a Unix kill. Is there any way that this is possible?
Thanks!

Jan S
- 1,831
- 15
- 21
0
votes
1 answer
SIGTERM and SIGKILL
I was going through following stackoverflow post
In what order should I send signals to gracefully shutdown processes?
and came across following statement. Please help me understand the part I have marked in bold. [found in the answer with 3 votes]…

Jack
- 741
- 1
- 8
- 25
0
votes
1 answer
Close FIFO After Signal SIGTERM Received
just this short question: how do we close the FIFO file if we receive the SIGTERM and exit.
If my file is a normal file, it works. But if it is a FIFO, it doesn't work.
Any ideas? Thanks :)
/**
with the help of these guys,
it is not a good…

4af2e9eb6
- 682
- 3
- 7
- 20
0
votes
1 answer
How can i get the return code of a killed process in unix?
I have a bash script where i kill a running process by sending the SIGTERM signal to it's process ID. However, i want to know the return code of the process i just sent the signal.
Is that possible?
i cannot use 'wait' because the process to kill…

Mary Jane
- 31
- 1
- 3
0
votes
1 answer
Bash: Failsafe kill for process bound to IP addresses
I have processes that after started, bind to an address and port. These processes are run in screen using exec so that the screen closes when the child process closes.
When killing the process, I use kill -9 PID, but sometimes the screen ends, yet…

hexacyanide
- 88,222
- 31
- 159
- 162
0
votes
3 answers
How to safely kill Linux process?
An embedded Linux system that continuously writes files (~1/s) to a FAT32 partition occasionally corrupts the partition when interrupted. The process can be interrupted 2 ways: a power cycle, or using musb_hdrc/gadget to copy files to and from the…

jacknad
- 13,483
- 40
- 124
- 194
0
votes
1 answer
QNX system hangs while shutting down using phshutdown
While shutting down QNX neutrino using phshutdown(either reboot or shutdown),system hangs while killing message queues(mqueue).the message displayed on screen is
Shutting down service providers(mqueue)
What could be the reason for this ?

Rajesh
- 356
- 1
- 5
- 15
0
votes
1 answer
Why my program not receive SIGTERM?
I am using a telnet/ssh seesion on some server to run a specific simulator progrmam, and the program rely on a SIGTERM to exit itself(if not input "exit" string interactively).
The program will normally exit itself on most servers when I kill the…

Kevin Yu
- 1,423
- 4
- 15
- 19
-1
votes
1 answer
Python SIGTERM-handler not executed
I have a Python-script which is started at bootup. In this I am trying to detect when the Raspberry is shutting down and at that time write some data to a file.
However, the SIGTERM-handler is not getting activated.
What I have is this
import…

ye_ol_man
- 37
- 6
-1
votes
2 answers
SigHandler causing program to not terminate
Currently I am trying to create a signal handler that, when it receives a SIGTERM signal, it closes open network sockets and file descriptors.
Here is my SigHandler function
static void SigHandler(int signo){
if(signo == SIGTERM){
…

Shox2711
- 139
- 1
- 12
-1
votes
1 answer
SIGTERM signal from parent does not invoke signal handler in child?
I'm writing a program where both the child process and the parent process can send a SIGTERM signal to the child.
The signal handler is something like this:
void custom_signal_handler(int signum, siginfo_t* info, void* ptr) {
if (signum ==…

Mickey
- 1,405
- 2
- 13
- 33
-2
votes
1 answer
How to change the meaning of SIGTERM in C program
I've recently had a problem with signals. I'd like to write a program in C which would print anything after a signal is sent to the process. For example: If I send SIGTERM to my process (which is simply running program), I want the program to…

SigKillMe
- 19
- 1
- 1
- 8