avoid deadlock talking to cpio