110840fc87
* ess/hnp: add support for forwarding additional signals This commit adds support to the hnp ess module to forward additional signals beyond the default SIGUSR1, SIGUSR2, SIGSTP, and SIGCONT. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov> * Generalize this a bit to allow a broader range of signals to be forwarded. Turns out that SIGURG is now a "standard" signal, though the value differs across systems. So setup to forward it (and some friends) if they are defined. Allow users to provide the signal name (instead of the integer value) as the value of even the more common signals does vary across systems. Don't limit the number that can be supported. Signed-off-by: Ralph Castain <rhc@open-mpi.org> * ess/hnp: fix some bugs in the signal forwarding code This commit fixes two bugs: - signals_set needs to be set even if no signals are being forwarded. If it is not set we will SEGV in libevent if ess_hnp_forward_signals == none. - SIGTERM and SIGHUP are handled with a different type of handler. Do not allow the user to specify these to be forwarded. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov> * We are sure to get "dinged" if error messages aren't nicely output via show_help, so do so here Signed-off-by: Ralph Castain <rhc@open-mpi.org>
50 строки
1.6 KiB
Makefile
50 строки
1.6 KiB
Makefile
#
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
# University Research and Technology
|
|
# Corporation. All rights reserved.
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
# of Tennessee Research Foundation. All rights
|
|
# reserved.
|
|
# Copyright (c) 2004-2009 High Performance Computing Center Stuttgart,
|
|
# University of Stuttgart. All rights reserved.
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
# All rights reserved.
|
|
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
|
# Copyright (c) 2017 Los Alamos National Security, LLC. All rights
|
|
# reseved.
|
|
# Copyright (c) 2017 Intel, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
dist_ortedata_DATA = help-ess-hnp.txt
|
|
|
|
sources = \
|
|
ess_hnp.h \
|
|
ess_hnp_component.c \
|
|
ess_hnp_module.c
|
|
|
|
# Make the output library in this directory, and name it either
|
|
# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la
|
|
# (for static builds).
|
|
|
|
if MCA_BUILD_orte_ess_hnp_DSO
|
|
component_noinst =
|
|
component_install = mca_ess_hnp.la
|
|
else
|
|
component_noinst = libmca_ess_hnp.la
|
|
component_install =
|
|
endif
|
|
|
|
mcacomponentdir = $(ortelibdir)
|
|
mcacomponent_LTLIBRARIES = $(component_install)
|
|
mca_ess_hnp_la_SOURCES = $(sources)
|
|
mca_ess_hnp_la_LDFLAGS = -module -avoid-version
|
|
|
|
noinst_LTLIBRARIES = $(component_noinst)
|
|
libmca_ess_hnp_la_SOURCES =$(sources)
|
|
libmca_ess_hnp_la_LDFLAGS = -module -avoid-version
|