summaryrefslogtreecommitdiffstats
path: root/mdmon.c
diff options
context:
space:
mode:
authorLukasz Florczak <lukasz.florczak@linux.intel.com>2022-02-21 13:05:20 +0100
committerJes Sorensen <jsorensen@fb.com>2022-04-04 17:13:02 +0200
commit83a379cfbd283b387919fe05d44eb4c49e155ad6 (patch)
tree5b3a11e1c892bacde284a4170579fd77dcb1adb4 /mdmon.c
parentudev: adapt rules to systemd v247 (diff)
downloadmdadm-83a379cfbd283b387919fe05d44eb4c49e155ad6.tar.xz
mdadm-83a379cfbd283b387919fe05d44eb4c49e155ad6.zip
Replace error prone signal() with sigaction()
Up to this date signal() was used which implementation could vary [1]. Sigaction() call is preferred. This commit introduces replacement from signal() to sigaction() by the use of signal_s() wrapper. Also remove redundant signal.h header includes. [1] https://man7.org/linux/man-pages/man2/signal.2.html Signed-off-by: Lukasz Florczak <lukasz.florczak@linux.intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mdmon.c')
-rw-r--r--mdmon.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mdmon.c b/mdmon.c
index c71e62c6..5570574b 100644
--- a/mdmon.c
+++ b/mdmon.c
@@ -56,7 +56,6 @@
#include <errno.h>
#include <string.h>
#include <fcntl.h>
-#include <signal.h>
#include <dirent.h>
#ifdef USE_PTHREADS
#include <pthread.h>