summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/exit.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2015-10-15 16:26:52 -0700
committerRobert Mustacchi <rm@joyent.com>2015-11-16 09:44:54 -0800
commit3d729aecc03ea6ebb9bd5d56b8dccd24f57daa41 (patch)
tree7c90a77f5265b35f475932b34c933c63b5664a4e /usr/src/uts/common/os/exit.c
parentf9eb9fdf196b6ed476e4ffc69cecd8b0da3cb7e7 (diff)
downloadillumos-gate-3d729aecc03ea6ebb9bd5d56b8dccd24f57daa41.tar.gz
6342 want signalfd support
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Dan McDonald <danmcd@omniti.com>
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();