Logo Search packages:      
Sourcecode: fuse version File versions  Download package

int fuse_daemonize ( int  foreground )

Go into the background

foregroundif true, stay in the foreground
0 on success, -1 on failure

Definition at line 180 of file helper.c.

References fuse_daemonize().

Referenced by fuse_daemonize().

      int res;

      if (!foreground) {
            res = daemon(0, 0);
            if (res == -1) {
                  perror("fuse: failed to daemonize program\n");
                  return -1;
      return 0;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index