[master 3/8] Use the result from AC_FUNC_FORK at build time

David Shea dshea at redhat.com
Thu Jul 24 19:32:47 UTC 2014


Make it look like we have that macro there for a reason and not just
because autoscan told us to use it.
---
 pyanaconda/isys/auditd.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pyanaconda/isys/auditd.c b/pyanaconda/isys/auditd.c
index 24cefa8..8b36505 100644
--- a/pyanaconda/isys/auditd.c
+++ b/pyanaconda/isys/auditd.c
@@ -98,6 +98,12 @@ int audit_daemonize(void) {
 #ifdef USESELINUX
     int fd;
     pid_t child;
+
+/* I guess we should actually do something with the output of AC_FUNC_FORK */
+#ifndef HAVE_WORKING_WORK
+#error "Autoconf could not find a working fork. Please fix this."
+#endif
+
     if ((child = fork()) > 0)
         return 0;
 
-- 
1.9.3



More information about the anaconda-patches mailing list