]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.h
Replace error prone signal() with sigaction()
authorLukasz Florczak <lukasz.florczak@linux.intel.com>
Mon, 21 Feb 2022 12:05:20 +0000 (13:05 +0100)
committerJes Sorensen <jsorensen@fb.com>
Mon, 4 Apr 2022 15:13:02 +0000 (11:13 -0400)
commit83a379cfbd283b387919fe05d44eb4c49e155ad6
tree5b3a11e1c892bacde284a4170579fd77dcb1adb4
parentcf9a109209aad285372b67306d54118af6fc522b
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>
Grow.c
Monitor.c
managemon.c
mdadm.h
mdmon.c
monitor.c
probe_roms.c
raid6check.c
util.c