about summary refs log tree commit diff
path: root/support/tst-support-process_state.c
Commit message (Collapse)AuthorAgeFilesLines
* support: Add support_process_state_waitAdhemerval Zanella2020-02-271-0/+105
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.