Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Fixed: https://github.com/util-linux/util-linux/issues/3774
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
ALRM
encode-decode round-trip "USR1":
USR1
-Pending (thread): INT ILL
-Pending (process): USR1
-Blocked: INT ILL ABRT FPE USR1 SEGV TERM
-Ignored: HUP QUIT TRAP PIPE ALRM
-Caught: ILL USR1
+Pending (thread):
+ILL
+INT
+Pending (process):
+USR1
+Blocked:
+ABRT
+FPE
+ILL
+INT
+SEGV
+TERM
+USR1
+Ignored:
+ALRM
+HUP
+PIPE
+QUIT
+TRAP
+Caught:
+ILL
+USR1
ts_check_test_command "$TS_HELPER_SIGSTATE"
ts_check_prog "sed"
+ts_check_prog "sort"
+ts_check_prog "tr"
. "$TS_SELF/kill_functions.sh"
printf "0x%0.16x\n" "$bits"
}
+sort_signals_by_name()
+{
+ local field
+ local siglist
+
+ while IFS=: read field siglist; do
+ echo "${field}:"
+ echo $siglist | tr ' ' '\n' | sort
+ done
+}
+
PID=
ACK=
{
else
cat
fi
- }
+ } | sort_signals_by_name
fi
echo DONE >&"${SIGSTATE[1]}"
fi