Attach to the child while it is spinning.

This fixes some obscure problems on Cray's Linux 2.6.32.

Fixes #548.