Tag

Signal Handling

1 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Jun 3, 2025 · Backend Development

Graceful Shutdown of Spring Boot Applications: kill Commands, Signal Handlers, and Runtime Hooks

This article explains how to achieve graceful shutdown for Java applications by using Linux kill signals, JVM SignalHandler registration, Runtime.addShutdownHook, and Spring Boot's actuator shutdown endpoint, providing code examples and configuration details for safe resource cleanup.

Graceful ShutdownJavaKill Command
0 likes · 13 min read
Graceful Shutdown of Spring Boot Applications: kill Commands, Signal Handlers, and Runtime Hooks
Cloud Native Technology Community
Cloud Native Technology Community
Jun 3, 2025 · Cloud Native

Custom Stop Signals for Containers in Kubernetes v1.33 (Alpha Feature)

Starting with Kubernetes v1.33, the Alpha feature ContainerStopSignals introduces a Pod‑level lifecycle.stopSignal field that lets platform teams specify which Unix signal (e.g., SIGINT, SIGUSR1) should be sent to containers on termination, overcoming the previous reliance on image‑defined STOPSIGNAL and improving graceful shutdown control across Linux and Windows workloads.

Alpha FeatureContainerStopSignalsGraceful Shutdown
0 likes · 6 min read
Custom Stop Signals for Containers in Kubernetes v1.33 (Alpha Feature)
IT Services Circle
IT Services Circle
Nov 25, 2024 · Fundamentals

Understanding SIGPIPE Signal and Preventing Service Crashes in Go‑Rust Integration

This article explains how the Linux SIGPIPE signal is generated during broken TCP connections, why the default kernel handling can terminate Go services that call Rust code via cgo, and provides practical code examples to ignore SIGPIPE and avoid silent process exits.

Linux SignalsRustSIGPIPE
0 likes · 15 min read
Understanding SIGPIPE Signal and Preventing Service Crashes in Go‑Rust Integration
Go Programming World
Go Programming World
Aug 22, 2024 · Backend Development

Graceful Shutdown in Go: Using os/signal and net/http for Clean Process Termination

This article explains how to implement graceful shutdown for Go programs, covering signal handling with os/signal, closing HTTP servers without interrupting active connections, managing goroutine lifecycles, and providing complete example code for both the standard net/http package and the Gin framework.

Graceful ShutdownServerSignal Handling
0 likes · 44 min read
Graceful Shutdown in Go: Using os/signal and net/http for Clean Process Termination
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 31, 2023 · Backend Development

Graceful Shutdown Library for Go (G.S): Design, Usage, and Code Walkthrough

This article introduces the Go‑based G.S library for graceful application shutdown, analyzes common container‑related pitfalls, explains its lightweight architecture with TerminateSignal and WaitingUnit modules, provides installation steps, a complete usage example, and detailed code explanations to help developers implement reliable signal handling.

Graceful ShutdownSignal Handlingbackend
0 likes · 12 min read
Graceful Shutdown Library for Go (G.S): Design, Usage, and Code Walkthrough
Top Architect
Top Architect
Jul 18, 2023 · Cloud Native

Java Containerization Guide: Base Image Selection, JDK/JRE Choice, JVM Options, Signal Handling, Memory Limits, DNS Caching, and Native Compilation

This comprehensive guide explains how to containerize Java applications by choosing appropriate base images, deciding between JDK and JRE, selecting a JVM, handling graceful shutdown signals, configuring memory limits, managing DNS caching, and optionally compiling to native binaries with GraalVM.

ContainerizationDockerJVM
0 likes · 23 min read
Java Containerization Guide: Base Image Selection, JDK/JRE Choice, JVM Options, Signal Handling, Memory Limits, DNS Caching, and Native Compilation
Sohu Tech Products
Sohu Tech Products
Apr 14, 2021 · Operations

Comprehensive Bash Scripting Guide: Conditionals, Loops, and Signal Traps

This article provides a detailed Bash scripting tutorial covering conditional statements (if/elif/else, case), various loop constructs (for, while, until, select), control commands (break, continue, shift), signal handling with trap, and several practical example scripts such as a multiplication table, colored triangle, and chessboard pattern.

ConditionalsSignal Handlingautomation
0 likes · 16 min read
Comprehensive Bash Scripting Guide: Conditionals, Loops, and Signal Traps
360 Tech Engineering
360 Tech Engineering
Feb 18, 2020 · Backend Development

Graceful HTTP Server Restart in Go: Source Code Analysis and Implementation Details

This article examines classic smooth upgrade strategies for HTTP services, highlights their limitations, and provides a detailed analysis of Facebook’s graceful restart library for Go, including code examples, signal handling, process inheritance, and the mechanisms for zero‑downtime deployments.

Graceful RestartProcess ManagementSignal Handling
0 likes · 15 min read
Graceful HTTP Server Restart in Go: Source Code Analysis and Implementation Details
JD Retail Technology
JD Retail Technology
Dec 24, 2019 · Mobile Development

Implementing Java and Native Crash Monitoring on Android with the Eagle Eye System

This article explains how to capture and report both Java and native crashes on Android using the Eagle Eye monitoring system, detailing the use of Thread.UncaughtExceptionHandler, Linux signal mechanisms, sigaction registration, alternative stacks, and native stack parsing with libbacktrace to improve app stability.

AndroidCrash MonitoringEagle Eye
0 likes · 12 min read
Implementing Java and Native Crash Monitoring on Android with the Eagle Eye System
iQIYI Technical Product Team
iQIYI Technical Product Team
Jun 21, 2019 · Mobile Development

xCrash: An Open-Source Android Crash Capture SDK Overview

xCrash is an open‑source Android SDK that reliably captures both Java and native crashes across Android 4.0‑9.0 and multiple CPU architectures by using async‑signal‑safe handlers, a dedicated dumper process, and pre‑allocated resources to generate tombstone‑style dump files without root, offering richer diagnostics than BreakPad and extensible future features.

AndroidCrash ReportingNative
0 likes · 17 min read
xCrash: An Open-Source Android Crash Capture SDK Overview
360 Tech Engineering
360 Tech Engineering
Jun 6, 2019 · Backend Development

Hot Reloading Go Configuration Files Using System Signals

This tutorial explains how to implement hot‑reloading of Go configuration files by manually sending Unix signals, covering the creation of a signal‑listening goroutine, use of the signal.Notify API, selective handling with select, and a complete example that loads JSON config on SIGUSR1.

Signal HandlingSystem Signalsconfiguration
0 likes · 10 min read
Hot Reloading Go Configuration Files Using System Signals
Tencent Cloud Developer
Tencent Cloud Developer
Mar 14, 2019 · Backend Development

Implementing Graceful (Hot) Restart for Go HTTP Services

To implement a graceful hot restart for a Go HTTP service, the program listens for SIGHUP, forks a child process that inherits the listening socket via an extra file descriptor, the parent stops accepting new connections and shuts down while the child begins serving, ensuring uninterrupted client requests.

Graceful RestartProcess ForkSignal Handling
0 likes · 10 min read
Implementing Graceful (Hot) Restart for Go HTTP Services
Dada Group Technology
Dada Group Technology
Jun 16, 2017 · Backend Development

Ensuring Safe JVM Shutdown with Shutdown Hooks and Signal Handling

To prevent loss of asynchronous tasks and data corruption during application restarts, this article explains how to safely shut down the JVM using shutdown hooks, custom signal handling, and proper hook implementation, while highlighting risks of forced termination and best‑practice considerations.

JVMJavaShutdown Hooks
0 likes · 12 min read
Ensuring Safe JVM Shutdown with Shutdown Hooks and Signal Handling