summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/exit.c')
-rw-r--r--usr/src/uts/common/os/exit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/uts/common/os/exit.c b/usr/src/uts/common/os/exit.c
index c5d54b5978..f0c0983a3a 100644
--- a/usr/src/uts/common/os/exit.c
+++ b/usr/src/uts/common/os/exit.c
@@ -455,6 +455,14 @@ proc_exit(int why, int what)
(*dtrace_helpers_cleanup)();
}
+ /*
+ * Clean up any signalfd state for the process.
+ */
+ if (p->p_sigfd != NULL) {
+ VERIFY(sigfd_exit_helper != NULL);
+ (*sigfd_exit_helper)();
+ }
+
/* untimeout the realtime timers */
if (p->p_itimer != NULL)
timer_exit();