Add env var UST_REGISTER_TIMEOUT
[lttng-ust.git] / include / lttng-ust-comm.h
index 0ae99ab4d01c214025ab16943f959caee1f7104f..e896f1a1015f3e52f042c0f8df1b8e3724715d5e 100644 (file)
 #include <ust/lttng-ust-abi.h>
 
 /*
- * TODO: allow override of constructor timeout with an environment
- * variable.
+ * Default timeout the application waits for the sessiond to send its
+ * "register done" command. Can be overridden with the environment
+ * variable "UST_REGISTER_TIMEOUT". Note that if the sessiond is not
+ * found, the application proceeds directly without any delay.
  */
-#define LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_S                3
-#define LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_NS       0
+#define LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS       3000
 
 #define LTTNG_RUNDIR                        "/var/run/lttng"
 
This page took 0.023136 seconds and 4 git commands to generate.