Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

o Write when we're exiting.

  • Loading branch information...
commit 0a3400dbd4c7f77986aa94b8598b27a782541db6 1 parent 0330f76
@hzeller authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 folve-main.cc
View
6 folve-main.cc
@@ -187,6 +187,10 @@ static void *folve_init(struct fuse_conn_info *conn) {
return NULL;
}
+static void folve_destroy(void *) {
+ syslog(LOG_INFO, "exiting.");
+}
+
static int usage(const char *prg) {
fprintf(stderr, "usage: %s <config-dir> <original-dir> <mount-point>\n", prg);
return 1;
@@ -227,7 +231,9 @@ int main(int argc, char *argv[]) {
struct fuse_operations folve_operations;
memset(&folve_operations, 0, sizeof(folve_operations));
+ // Start/stop. Will write to syslog and start auxiliary http service.
folve_operations.init = folve_init;
+ folve_operations.destroy = folve_destroy;
// Basic operations to make navigation work.
folve_operations.readdir = folve_readdir;
Please sign in to comment.
Something went wrong with that request. Please try again.