From 0375b2b32e4683c8f7bdf104038bedde77d9827b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 19 Aug 2017 18:27:37 +0000 Subject: Fix fd leak in s6_svc_lock_release --- src/include/s6/s6-supervise.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/s6/s6-supervise.h b/src/include/s6/s6-supervise.h index 541c30d..bbd8539 100644 --- a/src/include/s6/s6-supervise.h +++ b/src/include/s6/s6-supervise.h @@ -5,7 +5,6 @@ #include #include -#include #define S6_SUPERVISE_CTLDIR "supervise" #define S6_SUPERVISE_EVENTDIR "event" @@ -19,7 +18,7 @@ extern int s6_svc_writectl (char const *, char const *, char const *, size_t) ; extern int s6_svc_main (int, char const *const *, char const *, char const *, char const *) ; extern int s6_svc_lock_take (char const *) ; -#define s6_svc_lock_release(fdlock) lock_un(fdlock) +extern void s6_svc_lock_release(int) ; typedef struct s6_svstatus_s s6_svstatus_t, *s6_svstatus_t_ref ; struct s6_svstatus_s -- cgit 1.4.1