Closed rockuw closed 8 years ago
目前很多初始化工作是放在fuse的init函数中,在这里面stdout和stderr都被重定向了。
解决的办法的是把初始化工作放在fuse的init之前,即ossfs的main()函数中。
不过还需要看一下标准的使用fuse的做法是什么样子。
sshfs的init函数也是很简单的:
static void *sshfs_init(void)
#endif
{
#if FUSE_VERSION >= 26
/* Readahead should be done by kernel or sshfs but not both */
if (conn->async_read)
sshfs.sync_read = 1;
#endif
if (!sshfs.delay_connect)
start_processing_thread();
return NULL;
}