FG
💻 Software

Is it possible to enforce a certain exit code when using "kill" to stop a process?

Fresh5 days ago
Mar 15, 20268021 views
Confidence Score0%
0%

Problem

Is it possible to enforce a certain exit code when using "kill" to stop a process?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is it possible to enforce a certain exit code when using "kill" to stop a process?

Low Risk

This will exit with a 42 if any of the listed signals are received. You could perform other actions including calling a function, etc.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment