summaryrefslogtreecommitdiffstats
path: root/src/util/child_common.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-10-21 22:36:59 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-11-05 20:16:24 +0100
commitb95d9cbd6959a3174c4fb963be642f770938e4b7 (patch)
tree418f98bc6d9f4077298ba423a4d1ece315bebc44 /src/util/child_common.h
parent093ac8b41e4baefd2c1102fb897367318de12fb3 (diff)
downloadsssd-b95d9cbd6959a3174c4fb963be642f770938e4b7.tar.gz
sssd-b95d9cbd6959a3174c4fb963be642f770938e4b7.tar.xz
sssd-b95d9cbd6959a3174c4fb963be642f770938e4b7.zip
UTIL: Remove more code duplication setting up child processes
All our child processes duplicated the same code that set up the debugging all around. Instead of adding yet another copy for the selinux_child, add a common utility function. Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/util/child_common.h')
-rw-r--r--src/util/child_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/child_common.h b/src/util/child_common.h
index 261da7f9c..e159719a2 100644
--- a/src/util/child_common.h
+++ b/src/util/child_common.h
@@ -120,4 +120,6 @@ void child_cleanup(int readfd, int writefd);
int child_io_destructor(void *ptr);
+errno_t child_debug_init(const char *logfile, int *debug_fd);
+
#endif /* __CHILD_COMMON_H__ */