示例#1
0
文件: daemon.c 项目: 007/afpfs-ng
int daemon_unmount_volume(struct afp_volume * volume)
{
	if (volume->priv) {
		fuse_exit((struct fuse *)volume->priv);
		pthread_kill(volume->thread, SIGHUP);
		pthread_join(volume->thread,NULL);
	}
	return 0;
}
示例#2
0
static void exit_handler(int sig)
{
	if(fuse_instance) {
		fuse_exit(fuse_instance);
		fuse_unmount(fuse_mountpoint, fuse_chan);
		fuse_destroy(fuse_instance);
	}
	_exit(0);
}
示例#3
0
文件: uproc.c 项目: zxjcarrot/uproc
/* 
* Tells uproc to exit.
*/
void uproc_exit(uproc_ctx_t *ctx) {
    fuse_exit(ctx->fuse);
}