Thanks Paulo and Pavel for the quick fix and review. I've added an xfstest test for it on the buildbot. It's essentially doing this: set -e rm -f x sleep 5 > x & pid=$! sleep 1 kill $pid wait $pid &> /dev/null || true timeout 2 stat x > /dev/null timeout 2 rm x this fails without the fix Cheers, -- Aurélien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 247165 (AG München)