aboutsummaryrefslogtreecommitdiff
path: root/sig.c
diff options
context:
space:
mode:
Diffstat (limited to 'sig.c')
-rw-r--r--sig.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sig.c b/sig.c
index 7279b82..7eb120e 100644
--- a/sig.c
+++ b/sig.c
@@ -100,6 +100,14 @@ throw_signal (const int signum)
siginfo_static.hard = true;
}
+void
+throw_signal_soft (const int signum, const char *signal_text)
+{
+ siginfo_static.signal_received = signum;
+ siginfo_static.hard = false;
+ siginfo_static.signal_text = signal_text;
+}
+
static void
signal_reset (struct signal_info *si)
{