From 8d3522e1e4be59e44ab07bbedc77be903d17eb56 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 24 Mar 2011 01:04:14 +0000 Subject: Rewrite all remaining subprocess handling in terms of libpipeline. * lib/security.c (do_system_drop_privs_child): New function. (do_system_drop_privs): Rewrite using libpipeline. * src/catman.c (post_fork): New function. (catman): Rewrite using libpipeline. (add_arg): Rewrite as a wrapper around pipecmd_arg. (do_catman): Remove. (reset_cursor): Remove. (parse_for_sec): Use libpipeline for subprocess handling. (main): Install custom post-fork handler. * src/man.c (gripe_no_man) [_AIX || __sgi]: Rewrite vendor fallback using libpipeline. * src/Makefile.am (catman_LDADD): Add $(libpipeline_LIBS). * src/catman.c (main): Duplicate the output of setlocale if non-NULL. * configure.ac (AC_FUNC_VFORK): Remove. (AC_REPLACE_FUNCS): Remove waitpid. * gnulib: Remove waitpid module. * lib/README: Remove waitpid.c. * lib/waitpid.c: Remove. --- config.h.in | 9 --------- 1 file changed, 9 deletions(-) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index f0cc899e..83d2b2bc 100644 --- a/config.h.in +++ b/config.h.in @@ -299,9 +299,6 @@ /* Define to 1 when the gnulib module vsnprintf should be tested. */ #undef GNULIB_TEST_VSNPRINTF -/* Define to 1 when the gnulib module waitpid should be tested. */ -#undef GNULIB_TEST_WAITPID - /* Define to 1 when the gnulib module wcrtomb should be tested. */ #undef GNULIB_TEST_WCRTOMB @@ -1155,9 +1152,6 @@ /* Define to 1 if vsnprintf is declared even after undefining macros. */ #undef HAVE_RAW_DECL_VSNPRINTF -/* Define to 1 if waitpid is declared even after undefining macros. */ -#undef HAVE_RAW_DECL_WAITPID - /* Define to 1 if wcpcpy is declared even after undefining macros. */ #undef HAVE_RAW_DECL_WCPCPY @@ -1467,9 +1461,6 @@ /* Define to 1 if you have the `vsnprintf' function. */ #undef HAVE_VSNPRINTF -/* Define to 1 if you have the `waitpid' function. */ -#undef HAVE_WAITPID - /* Define to 1 if you have the header file. */ #undef HAVE_WCHAR_H -- cgit v1.2.3