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

#include <skalibs/strerr2.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 ;
}