summaryrefslogtreecommitdiff
path: root/src/libs6rc/s6rc_servicedir_unblock.c
blob: c79264ebbc1a70c56dac961a9e552423e0f0a6f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <s6/supervise.h>

#include <s6-rc/s6rc-servicedir.h>

int s6rc_servicedir_unblock (char const *dir, int h)
{
  if (h && s6_svc_writectl(dir, S6_SUPERVISE_CTLDIR, "U", 1) < 0) return -1 ;
  return 0 ;
}