summaryrefslogtreecommitdiff
path: root/src/libs6
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/libs6
parent70249dc762f2d384b5eee37fa7470284751e5ba8 (diff)
downloads6-0375b2b32e4683c8f7bdf104038bedde77d9827b.tar.xz
Fix fd leak in s6_svc_lock_release
Diffstat (limited to 'src/libs6')
-rw-r--r--src/libs6/deps-lib/s61
-rw-r--r--src/libs6/s6_svc_lock_release.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/libs6/deps-lib/s6 b/src/libs6/deps-lib/s6
index 9cb4d93..a0da2c5 100644
--- a/src/libs6/deps-lib/s6
+++ b/src/libs6/deps-lib/s6
@@ -29,6 +29,7 @@ s6_accessrules_uidgid_fs.o
s6_supervise_lock.o
s6_supervise_lock_mode.o
s6_svc_lock_take.o
+s6_svc_lock_release.o
s6_svc_ok.o
s6_svc_write.o
s6_svc_writectl.o
diff --git a/src/libs6/s6_svc_lock_release.c b/src/libs6/s6_svc_lock_release.c
new file mode 100644
index 0000000..4a6f68d
--- /dev/null
+++ b/src/libs6/s6_svc_lock_release.c
@@ -0,0 +1,8 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+
+void s6_svc_lock_release (int fd)
+{
+ fd_close(fd) ;
+}