summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-08-19 18:27:37 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-08-19 18:27:37 +0000
commit0375b2b32e4683c8f7bdf104038bedde77d9827b (patch)
tree06cefb50369709bbf22c0b61481a3a9c0853f136 /src/include
parent70249dc762f2d384b5eee37fa7470284751e5ba8 (diff)
downloads6-0375b2b32e4683c8f7bdf104038bedde77d9827b.tar.xz
Fix fd leak in s6_svc_lock_release
Diffstat (limited to 'src/include')
-rw-r--r--src/include/s6/s6-supervise.h3
1 files changed, 1 insertions, 2 deletions
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 <sys/types.h>
#include <skalibs/tai.h>
-#include <skalibs/djbunix.h>
#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