aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-base.h')
-rw-r--r--src/mds-base.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mds-base.h b/src/mds-base.h
index a4298da..c8666a1 100644
--- a/src/mds-base.h
+++ b/src/mds-base.h
@@ -91,6 +91,18 @@ extern int is_respawn;
extern int is_reexec;
/**
+ * Whether to fork the process when the
+ * server has been properly initialised
+ */
+extern int on_init_fork;
+
+/**
+ * Command the run (`NULL` for none) when
+ * the server has been properly initialised
+ */
+extern char* on_init_sh;
+
+/**
* The thread that runs the master loop
*/
extern pthread_t master_thread;
@@ -138,6 +150,13 @@ int parse_cmdline(void); /* __attribute__((weak)) */
*/
int connect_to_display(void); /* __attribute__((weak)) */
+/**
+ * This function should be called when the server has
+ * been properly initialised but before initialisation
+ * of anything that is removed at forking is initialised
+ */
+void server_initialised(void); /* __attribute__((weak)) */
+
/**
* This function should be implemented by the actual server implementation