add non-blocking i/o option
[ust.git] / config.def.h
index ddb69f9fd96411896205d1ba22a3396da000f46e..e9df03809fe0c5a49ab4ed6ce3a4ba8fce72363d 100644 (file)
@@ -22,6 +22,14 @@ const long nspulsedelay = 1000000;
 /* lock the opened device */
 const int exclusive = 1; /*(0|1)*/
 
+/*
+ * set the device to blocking mode,
+ * on some systems this will stop all threads
+ * of a process during read/write, thus rendering
+ * ust unusable
+ */
+const int blocking = 1; /*(0|1)*/
+
 /* escape character for interactive use */
 const char escapechar = '~';
 
@@ -30,7 +38,7 @@ int verbose = 0; /*(0|1)*/
 
 /* exit timeout after piped ust reaches EOF */
 long stimeout = 0;
-long nstimeout = 1000;
+long nstimeout = 10000;
 
 /*
  * device name