On Wed, Nov 02, 2016 at 03:31:55PM +0100, Ruediger Meier wrote: > From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> > > Maybe we should add a --daemonize option to flock to cover > this use case. I have doubts it will be usable for anything else than for our tests :-) > tests/ts/misc/flock | 10 ++++++++++ > 1 file changed, 10 insertions(+) Applied, thanks! > +# the lock should be established when flock has a child > +timeout 1s bash -c "while [ \$(ps --ppid $pid |wc -l) -lt 2 ]; do sleep 0.1 ;done" \ is "0.1" portable? :-) Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html