summaryrefslogtreecommitdiff
path: root/src/pipe-tools/s6-ftrig-notify.c
blob: 1dbd67a47910db5da5ffd6facf02285462c97145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ISC license. */

#include <skalibs/strerr.h>
#include <s6/ftrigw.h>

#define USAGE "s6-ftrig-notify fifodir message"

int main (int argc, char const *const *argv)
{
  PROG = "s6-ftrig-notify" ;
  if (argc < 3) strerr_dieusage(100, USAGE) ;
  if (ftrigw_notifys(argv[1], argv[2]) < 0)
    strerr_diefu2sys(111, "notify ", argv[1]) ;
  return 0 ;
}