diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-11-19 17:17:05 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-02-27 15:52:35 -0300 |
commit | dfe9aa91564c1bf2a23b5589a5db42f9da5d29b5 (patch) | |
tree | e0b278573ca44dd46752006e6caa978a65d655e6 /support/Makefile | |
parent | 5c8aa3849a58f2ef1d12ffb638a98578fbf99172 (diff) | |
download | glibc-dfe9aa91564c1bf2a23b5589a5db42f9da5d29b5.tar.gz glibc-dfe9aa91564c1bf2a23b5589a5db42f9da5d29b5.tar.xz glibc-dfe9aa91564c1bf2a23b5589a5db42f9da5d29b5.zip |
support: Add support_process_state_wait
It allows parent process to wait for child state using a polling strategy over procfs on Linux. The polling is used over ptrace to avoid the need to handle signals on the target pid and to handle some system specific limitation (such as YAMA). The polling has some limitations, such as resource consumption due the procfs read in a loop and the lack of synchronization after the state is obtained. The interface idea is to simplify some sleep synchronization waitid tests and is to reduce timeouts by replacing arbitrary waits.
Diffstat (limited to 'support/Makefile')
-rw-r--r-- | support/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/support/Makefile b/support/Makefile index a0304e6def..6e38b87ebe 100644 --- a/support/Makefile +++ b/support/Makefile @@ -56,6 +56,7 @@ libsupport-routines = \ support_format_hostent \ support_format_netent \ support_isolate_in_subprocess \ + support_process_state \ support_ptrace \ support_openpty \ support_paths \ @@ -95,6 +96,7 @@ libsupport-routines = \ xfopen \ xfork \ xftruncate \ + xgetline \ xgetsockname \ xlisten \ xlseek \ @@ -224,6 +226,7 @@ tests = \ tst-support_capture_subprocess \ tst-support_descriptors \ tst-support_format_dns_packet \ + tst-support-process_state \ tst-support_quote_blob \ tst-support_quote_string \ tst-support_record_failure \ |