Description of problem:
This was discovered when trying to install the freeipa package. During installation a number of services are configured and need to be restarted. The installer was hanging whenever a service was restarted.
While trying to diagnose this I discovered that strace -f will also demonstrate the hang.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install ntpd strace
2. strace -f /sbin/service restart ntpd
Created attachment 476839 [details]
python script that demonstrates the hang
If you change the value of capture_output in the script to False then the script will exit gracefully.
Note that the strace -f issue is unrelated to the python popen() issue. The strace -f issue happens because strace interferes with the process tree and PR_SETDEATHSIG hence loses its meaning. Not sure we really need to fix that given that this only happens when strace as debugging tool is used.
The popen() issue is fixed.
Built a new package now in koji:
Please test and reopen in case this desn't fix the issue.
Using this build I was able to do a minimal FreeIPA server installation. Still need to do more testing but initial results are very positive.