[compat] avoid subprocess deadlock