summaryrefslogtreecommitdiff
path: root/src/skadns/skadns_startf.c
blob: ac19a0cde5effcf17cad8fef90a47e8b3b645232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <skalibs/environ.h>
#include <skalibs/tai.h>
#include <skalibs/skaclient.h>
#include <s6-dns/skadns.h>

int skadns_startf (skadns_t *a, tain_t const *deadline, tain_t *stamp)
{
  static char const *const cargv[2] = { SKADNSD_PROG, 0 } ;
  return skaclient_startf_b(&a->connection, &a->buffers, cargv[0], cargv, (char const *const *)environ, SKACLIENT_OPTION_WAITPID, SKADNS_BANNER1, SKADNS_BANNER1_LEN, SKADNS_BANNER2, SKADNS_BANNER2_LEN, deadline, stamp) ;
}