Does this work OK with clvmd -S? Should we have FD_CLOEXEC ? (See pidfile.c in multipathd.) Also, let's make it library code rather than copying it from cmirrord. Alasdair