about summary refs log tree commit diff
path: root/src/pipe-tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-07 16:38:18 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-07 16:38:18 +0000
commit0ccb71ef43a4754bf115220e107785f68553f6d1 (patch)
treeb1806576c6852763609a254d996e4e1085999f82 /src/pipe-tools
parentc4f6183f0fd716953cfdc2e1869b5310724a3e57 (diff)
downloads6-0ccb71ef43a4754bf115220e107785f68553f6d1.tar.gz
s6-0ccb71ef43a4754bf115220e107785f68553f6d1.tar.xz
s6-0ccb71ef43a4754bf115220e107785f68553f6d1.zip
Use ftrigw_notify_b in s6-ftrig-notify
Diffstat (limited to 'src/pipe-tools')
-rw-r--r--src/pipe-tools/s6-ftrig-notify.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/pipe-tools/s6-ftrig-notify.c b/src/pipe-tools/s6-ftrig-notify.c
index 1216a6a..e4f07db 100644
--- a/src/pipe-tools/s6-ftrig-notify.c
+++ b/src/pipe-tools/s6-ftrig-notify.c
@@ -7,14 +7,9 @@
 
 int main (int argc, char const *const *argv)
 {
-  char const *p ;
   PROG = "s6-ftrig-notify" ;
   if (argc < 3) strerr_dieusage(100, USAGE) ;
-  p = argv[2] ;
-  for (; *p ; p++)
-  {
-    if (ftrigw_notify(argv[1], *p) == -1)
-      strerr_diefu2sys(111, "notify ", argv[1]) ;
-  }
+  if (ftrigw_notifys(argv[1], argv[2]) < 0)
+    strerr_diefu2sys(111, "notify ", argv[1]) ;
   return 0 ;
 }