summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-12-08 14:09:12 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-01-15 10:32:59 +0100
commit0e8a48e38e467b05951d2719956f8c0d5aed76b3 (patch)
tree1005fd890904d8366a8607c5e131658b75e34b09 /src/util
parent752227a75c0349089f1d7fdd3a09c8d4a77f425d (diff)
downloadsssd-0e8a48e38e467b05951d2719956f8c0d5aed76b3.tar.gz
sssd-0e8a48e38e467b05951d2719956f8c0d5aed76b3.tar.xz
sssd-0e8a48e38e467b05951d2719956f8c0d5aed76b3.zip
UTIL: Remove child_cleanup
Not used anymore after previous patch. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
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);