about summary refs log tree commit diff
path: root/src/pipe-tools/s6-cleanfifodir.c
blob: 3c1efb6a44a0407ca8d5860b9bfc6d4d19998e8e (plain) (blame)
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-cleanfifodir fifodir"

int main (int argc, char const *const *argv)
{
  PROG = "s6-cleanfifodir" ;
  if (argc < 2) strerr_dieusage(100, USAGE) ;
  if (!ftrigw_clean(argv[1]))
    strerr_diefu2sys(111, "clean up fifodir at ", argv[1]) ;
  return 0 ;
}