about summary refs log tree commit diff
path: root/src/pipe-tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-16 01:36:48 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-16 01:36:48 +0000
commit83853a80eb18238796154164f9ea776b0c167ab7 (patch)
treea8087bab87fb1cf09a63f3b0619389a2ce3b2e37 /src/pipe-tools
parent87c5b2118efcee65eeda3f743d081ea9c2b866d9 (diff)
downloads6-83853a80eb18238796154164f9ea776b0c167ab7.tar.gz
s6-83853a80eb18238796154164f9ea776b0c167ab7.tar.xz
s6-83853a80eb18238796154164f9ea776b0c167ab7.zip
- s6-svlisten and s6-svlisten1
 - Synchronous s6-svc
 - version 2.0.2.0, rc
Diffstat (limited to 'src/pipe-tools')
-rw-r--r--src/pipe-tools/s6-ftrig-listen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipe-tools/s6-ftrig-listen.c b/src/pipe-tools/s6-ftrig-listen.c
index 3683dff..8f0d2cc 100644
--- a/src/pipe-tools/s6-ftrig-listen.c
+++ b/src/pipe-tools/s6-ftrig-listen.c
@@ -14,7 +14,7 @@
 #include <execline/execline.h>
 #include <s6/ftrigr.h>
 
-#define USAGE "s6-ftrig-listen [ -a | -o ] [ -t timeout ] ~fifodir1 ~regexp1 ... ; prog..."
+#define USAGE "s6-ftrig-listen [ -a | -o ] [ -t timeout ] fifodir1 regexp1 ... \"\" prog..."
 #define dieusage() strerr_dieusage(100, USAGE)
 
 static void handle_signals (void)
@@ -54,7 +54,7 @@ int main (int argc, char const **argv, char const *const *envp)
     if (t) tain_from_millisecs(&tto, t) ; else tto = tain_infinite_relative ;
     argc -= subgetopt_here.ind ; argv += subgetopt_here.ind ;
   }
-  if (argc < 2) dieusage() ;
+  if (argc < 4) dieusage() ;
   argc1 = el_semicolon(argv) ;
   if (!argc1 || (argc1 & 1) || (argc == argc1 + 1)) dieusage() ;
   if (argc1 >= argc) strerr_dief1x(100, "unterminated fifodir+regex block") ;