Whamcloud - gitweb
LU-8080 utils: Replace calls to signal with sigaction 55/19855/10
authorQuentin Bouget <quentin.bouget.ocre@cea.fr>
Fri, 13 May 2016 07:47:33 +0000 (09:47 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 27 May 2016 00:58:04 +0000 (00:58 +0000)
commit5fbb786b96b7db3a977dd8a8fca9a40f52f66b82
tree48992f585717e3e4fb561101e6c4685108ecaf39
parent3c94dc6c6156054293f1e794294036940ee5d578
LU-8080 utils: Replace calls to signal with sigaction

The man page for signal (2) states that sigaction should replace
signal for portability. It also states:
"The effects of signal() in a multithreaded process are unspecified."

This patch affects utils/lhsmtool_posix.c for the second reason and
utils/liblustreapi_hsm.c for completeness even though: "The only
portable use of signal() is to set a signal’s disposition to
SIG_DFL or SIG_IGN." (which is what is done in liblustreapi_hsm.c)

Signed-off-by: Quentin Bouget <quentin.bouget.ocre@cea.fr>
Change-Id: Ib247fab937e3aac514f418c7260cdd67fc9e442c
Reviewed-on: http://review.whamcloud.com/19855
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lhsmtool_posix.c
lustre/utils/liblustreapi_hsm.c