@@ -387,11 +387,11 @@ pthread_ret = pthread_setspecific(interpKey, interp); } if (global_interp_reset_key == -1) { - APPFS_DEBUG("Not creating a new interpreter since we are terminating."); + APPFS_DEBUG("Returning NULL since we are in the process of terminating all threads."); return(NULL); } thread_interp_reset_key = global_interp_reset_key; @@ -1074,13 +1074,13 @@ global_interp_reset_key = __sync_fetch_and_add(&interp_reset_key, 0); if (global_interp_reset_key != -1) { APPFS_DEBUG("Error sending kill signal to all threads, aborting anyway."); } - fuse_exit(fuse_get_context()->fuse); - appfs_get_path_info_cache_flush(-1, -1); + + fuse_exit(fuse_get_context()->fuse); return; } #endif @@ -1392,13 +1392,11 @@ offset += read_ret; retval += read_ret; } if (size != 0) { - APPFS_DEBUG("error: incomplete read (this is an error because FUSE will request the exact length of the file)"); - - return(0); + APPFS_DEBUG("error: incomplete read (this might be an error because FUSE will request the exact length of the file)"); } APPFS_DEBUG("Returning: %i", retval); return(retval);