summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/child_common.c22
-rw-r--r--src/util/child_common.h2
2 files changed, 0 insertions, 24 deletions
diff --git a/src/util/child_common.c b/src/util/child_common.c
index 78f1bfa17..0afd3a617 100644
--- a/src/util/child_common.c
+++ b/src/util/child_common.c
@@ -791,28 +791,6 @@ errno_t exec_child(TALLOC_CTX *mem_ctx,
STDIN_FILENO, STDOUT_FILENO);
}
-void child_cleanup(int readfd, int writefd)
-{
- int ret;
-
- if (readfd != -1) {
- ret = close(readfd);
- if (ret != EOK) {
- ret = errno;
- DEBUG(SSSDBG_CRIT_FAILURE,
- "close failed [%d][%s].\n", ret, strerror(ret));
- }
- }
- if (writefd != -1) {
- ret = close(writefd);
- if (ret != EOK) {
- ret = errno;
- DEBUG(SSSDBG_CRIT_FAILURE,
- "close failed [%d][%s].\n", ret, strerror(ret));
- }
- }
-}
-
int child_io_destructor(void *ptr)
{
int ret;
diff --git a/src/util/child_common.h b/src/util/child_common.h
index f1b41ace9..b93991832 100644
--- a/src/util/child_common.h
+++ b/src/util/child_common.h
@@ -114,8 +114,6 @@ errno_t exec_child(TALLOC_CTX *mem_ctx,
int *pipefd_to_child, int *pipefd_from_child,
const char *binary, int debug_fd);
-void child_cleanup(int readfd, int writefd);
-
int child_io_destructor(void *ptr);
errno_t child_debug_init(const char *logfile, int *debug_fd);