From b8afd3a780ce850ff107bb3be330465bf47f84bd Mon Sep 17 00:00:00 2001 From: Gary Mills Date: Fri, 12 Aug 2011 16:07:25 -0400 Subject: [PATCH] 1155 in.ftpd sometimes starts with SIGALRM blocked Reviewed by: Richard Lowe Reviewed by: Garrett D'Amore Reviewed by: Eric Schrock Reviewed by: Gordon Ross Approved by: Albert Lee --- usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c b/usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c index f8de58dbc3..f1f99ff74d 100644 --- a/usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c +++ b/usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c @@ -19,6 +19,8 @@ * CDDL HEADER END */ /* + * Copyright (c) 2011 Gary Mills + * * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. */ @@ -2695,6 +2697,7 @@ exec_method(instance_t *instance, instance_method_t method, method_info_t *mi, char **env; const char *errf; int serrno; + sigset_t mtset; basic_cfg_t *cfg = instance->config->basic; if (method == IM_START) { @@ -2715,6 +2718,12 @@ exec_method(instance_t *instance, instance_method_t method, method_info_t *mi, (void) sigset(SIGINT, SIG_DFL); /* + * Ensure that other signals are unblocked + */ + (void) sigemptyset(&mtset); + (void) sigprocmask(SIG_SETMASK, &mtset, (sigset_t *)NULL); + + /* * Setup exec arguments. Do this before the fd setup below, so our * logging related file fd doesn't get taken over before we call * expand_address(). -- 2.11.4.GIT