title: FUSE: Transport endpoint is not connected
body: <p><strong>Note</strong>: I read <a href="https://stackoverflow.com/questions/16002539">FUSE error: Transport endpoint is not connected</a> but it doesn't help.</p>
  
  <p>I'm working with the FUSE API: <a href="https://github.com/libfuse/libfuse" rel="nofollow noreferrer">https://github.com/libfuse/libfuse</a></p>
  
  <p>I created a small project to test the library. The <code>main</code> looks like:</p>
  
  <pre><code>(...)
      struct fuse_operations operations;
      operations.open = htsfuse_open;
      operations.read = htsfuse_read;
      operations.release = htsfuse_release;
      operations.readdir = htsfuse_readdir;
      operations.getattr = htsfuse_getattr;
  
      int ret= fuse_main( argc-1, &amp;argv[1], &amp;operations,NULL );
  (...)
  </code></pre>
  
  <p>my program is launched with:</p>
  
  <pre><code>sudo fusermount -u tmp_fuse &amp;&amp; rm -rf tmp_fuse
  mkdir -p tmp_fuse
  ./htsfuse config.xml ${PWD}/tmp_fuse
  ls tmp_fuse
  ls: cannot access 'tmp_fuse': Transport endpoint is not connected
  </code></pre>
  
  <p>I also tried to </p>
  
  <pre><code> sudo umount -l ./tmp_fuse
  </code></pre>
  
  <p>with/without fusermount but I got the same problem.</p>
  
  <p>After my application is launched, the last line of <code>/etc/mtab</code> is</p>
  
  <pre><code>test.xml /path/to/tmp_fuse fuse.test.xml rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
  </code></pre>
  
  <p>Thank you for your help.</p>
  
  <p>P.</p>