]> git.ipfire.org Git - thirdparty/krb5.git/commit
Minimize race conditions in t_iprop.py
authorGreg Hudson <ghudson@mit.edu>
Sat, 22 Feb 2014 20:58:03 +0000 (15:58 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 26 Feb 2014 21:11:01 +0000 (16:11 -0500)
commit4c376a3776aed0fb19b761406eaa2e0516ff6735
tree8fef68e444d89984c1eb33424d78fa604c29b29f
parent8df1965d1ccdbcb8d74a3e68ad35d7579db9ac44
Minimize race conditions in t_iprop.py

Augment kpropd's debugging output so we can see the starting and
ending serial numbers of a sync, and check them in t_iprop.py's
wait_for_prop to make sure we're observing the correct sync each time.
Try to make sure we only send SIGUSR1 when kpropd is actually
sleeping, by waiting for it to print its pre-sleep message to stderr
after a full dump and after each sync.  This isn't perfect, as there
is a short window between printing to stderr and actually sleeping,
but we can't do any better until kpropd has a more reliable mechanism
for triggering immediate updates.
src/slave/kpropd.c
src/tests/t_iprop.py