From c8a41df9c5b16dce89ae008a0187c6d606013b61 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 21 Jul 2018 11:31:45 +0000 Subject: Adapt to skalibs-2.7.0.0 --- src/libs6rc/s6rc_servicedir_block.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libs6rc/s6rc_servicedir_block.c') diff --git a/src/libs6rc/s6rc_servicedir_block.c b/src/libs6rc/s6rc_servicedir_block.c index a7e2b12..bfa6440 100644 --- a/src/libs6rc/s6rc_servicedir_block.c +++ b/src/libs6rc/s6rc_servicedir_block.c @@ -1,8 +1,8 @@ /* ISC license. */ #include -#include #include +#include #include #include #include @@ -18,9 +18,7 @@ int s6rc_servicedir_block (char const *dir) if (!touch(fn)) return -1 ; if (s6_svc_writectl(dir, S6_SUPERVISE_CTLDIR, "O", 1) < 0) { - int e = errno ; - unlink(fn) ; - errno = e ; + unlink_void(fn) ; return -1 ; } return status.flagwantup ; -- cgit v1.2.3