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

int fuse_set_signal_handlers ( struct fuse_session se )

Exit session on HUP, TERM and INT signals and ignore PIPE signal

Stores session in a global variable. May only be called once per process until fuse_remove_signal_handlers() is called.

sethe session to exit
0 on success, -1 on failure

Definition at line 47 of file fuse_signals.c.

References fuse_set_signal_handlers().

Referenced by fuse_set_signal_handlers().

      if (set_one_signal_handler(SIGHUP, exit_handler) == -1 ||
          set_one_signal_handler(SIGINT, exit_handler) == -1 ||
          set_one_signal_handler(SIGTERM, exit_handler) == -1 ||
          set_one_signal_handler(SIGPIPE, SIG_IGN) == -1)
            return -1;

      fuse_instance = se;
      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