s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

s6-ftrig-notify.c (350B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/strerr.h>
      4 #include <s6/ftrigw.h>
      5 
      6 #define USAGE "s6-ftrig-notify fifodir message"
      7 
      8 int main (int argc, char const *const *argv)
      9 {
     10   PROG = "s6-ftrig-notify" ;
     11   if (argc < 3) strerr_dieusage(100, USAGE) ;
     12   if (ftrigw_notifys(argv[1], argv[2]) < 0)
     13     strerr_diefu2sys(111, "notify ", argv[1]) ;
     14   return 0 ;
     15 }