From 0e8a48e38e467b05951d2719956f8c0d5aed76b3 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 8 Dec 2014 14:09:12 +0100 Subject: UTIL: Remove child_cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not used anymore after previous patch. Reviewed-by: Pavel Březina --- src/util/child_common.c | 22 ---------------------- src/util/child_common.h | 2 -- 2 files changed, 24 deletions(-) (limited to 'src/util') 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); -- cgit