-gboolean captive_sandbox_parent_query_vfs_retry(CORBA_Environment *evp,CaptiveVfsObject *captive_vfs_object)
-{
-GnomeVFSResult errvfsresult;
-gboolean want_retry;
-
- g_return_val_if_fail(evp!=NULL,FALSE);
- g_return_val_if_fail(captive_vfs_object!=NULL,FALSE);
-
- /* If !captive_vfs_object->options.sandbox_server_argv it is captive_vfs_object->options.sandbox_server_ior
- * where we cannot do any restart anyway.
- */
- want_retry=(captive_vfs_object->options.sandbox_server_argv
- && (evp->_major==CORBA_SYSTEM_EXCEPTION && !strcmp(ex_CORBA_COMM_FAILURE,CORBA_exception_id(evp))));
- /* Never free 'evp' if returning as no-retry - 'evp' will be reevaluated by the caller! */
- if (!want_retry)
- return FALSE; /* no retry */
- CORBA_exception_free(evp);
-
- captive_sandbox_parent_vfs_close(captive_vfs_object); /* errors ignored */
- errvfsresult=captive_sandbox_parent_vfs_new(captive_vfs_object);
-
- return errvfsresult==GNOME_VFS_OK; /* retry if restart succeeded */
-}
-
-