Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.0.2-alpha
-
None
-
Reviewed
Description
libhdfs may create threads or initialize internal JNI data structures when it is used. So we should be careful to daemonize() before initializing libhdfs, not after.
Unfortunately, fuse_dfs is doing just this – initializing libhdfs in its main function, prior to calling fuse_main which does a daemonize.
daemonize() does not preserve threads, because it is implemented by fork()}}ing and then continuing execution in the child and allowing the parent to {{exit().