From 96cd0558bcd69481ccc42e1b392f0c0b36fce2b0 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 28 Nov 2018 19:59:45 +0100 Subject: support: Add signal support to support_capture_subprocess_check Signal zero does not terminate a process, so it is safe to use negative values for signal numbers. Adjust libio/tst-vtables-common.c to use this new functionality, instead of determining the termination status for a signal indirectly. --- ChangeLog | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 28d7735ab3..75e1b17cfa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,20 @@ +2018-11-28 Florian Weimer + + support: Add signal support to support_capture_subprocess_check. + * support/capture_subprocess.h (support_capture_subprocess_check): + Adjust comment and rename parameter. + * support/support_capture_subprocess_check.c + (print_actual_status): New function. + (support_capture_subprocess_check): Support negative + status_or_signal. Call print_actual_status. + * support/tst-support_capture_subprocess.c (do_test): Call + support_capture_subprocess_check. + * libio/tst-vtables-common.c (termination_status) + (init_termination_status): Remove. + (check_for_termination): Adjust support_capture_subprocess_check + call. + (do_test): Remove call to init_termination_status. + 2018-11-28 Joseph Myers * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original -- cgit 1.4.1