From 15a4368b57b311e5088488ebdfda1a140f41f006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Wed, 15 Nov 1995 22:17:01 +0100 Subject: [PATCH] fixed wait bug Rev: src/lpc_signal.c:1.7 Rev: src/machine.h.in:1.4 Rev: src/modules/files/configure:1.2 Rev: src/modules/files/configure.in:1.2 Rev: src/modules/files/file.c:1.8 Rev: src/modules/files/file_machine.h.in:1.2 --- src/lpc_signal.c | 1 + src/machine.h.in | 6 ++++++ src/modules/files/configure | 2 +- src/modules/files/configure.in | 2 +- src/modules/files/file.c | 1 - src/modules/files/file_machine.h.in | 6 ------ 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lpc_signal.c b/src/lpc_signal.c index 9f698c2ab0..fdbb2fea86 100644 --- a/src/lpc_signal.c +++ b/src/lpc_signal.c @@ -11,6 +11,7 @@ #include "macros.h" #include "backend.h" #include <signal.h> +#include <sys/wait.h> #ifdef NSIG #define MAX_SIGNALS NSIG diff --git a/src/machine.h.in b/src/machine.h.in index 975dc6bda9..dd9b521420 100644 --- a/src/machine.h.in +++ b/src/machine.h.in @@ -217,6 +217,12 @@ /* Define if you have getrlimit */ #undef HAVE_GETRLIMIT +/* Define if you have waitpid */ +#undef HAVE_WAITPID + +/* Define if you have wait4 */ +#undef HAVE_WAIT4 + /* Define if you have the m library (-lm). */ #undef HAVE_LIBM diff --git a/src/modules/files/configure b/src/modules/files/configure index b502b2673f..9ee831f2ae 100755 --- a/src/modules/files/configure +++ b/src/modules/files/configure @@ -743,7 +743,7 @@ else fi -for ac_func in socketpair waitpid wait4 +for ac_func in socketpair do echo $ac_n "checking for $ac_func""... $ac_c" 1>&4 if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then diff --git a/src/modules/files/configure.in b/src/modules/files/configure.in index e7464f5ad2..138f65ad1e 100644 --- a/src/modules/files/configure.in +++ b/src/modules/files/configure.in @@ -10,7 +10,7 @@ AC_HAVE_HEADERS(arpa/inet.h sys/socketvar.h netinet/in.h \ AC_HEADER_DIRENT AC_CHECK_LIB(socket, socket) -AC_HAVE_FUNCS(socketpair waitpid wait4) +AC_HAVE_FUNCS(socketpair) AC_MSG_CHECKING(size of socket buffers) AC_CACHE_VAL(lpc_cv_socket_buffer_max, diff --git a/src/modules/files/file.c b/src/modules/files/file.c index 137482f4aa..3cb08d6587 100644 --- a/src/modules/files/file.c +++ b/src/modules/files/file.c @@ -27,7 +27,6 @@ #include <errno.h> #include <fcntl.h> #include <signal.h> -#include <sys/wait.h> #include <sys/socket.h> #ifdef HAVE_SYS_STREAM_H diff --git a/src/modules/files/file_machine.h.in b/src/modules/files/file_machine.h.in index fe7b9653ee..d091c641f2 100644 --- a/src/modules/files/file_machine.h.in +++ b/src/modules/files/file_machine.h.in @@ -34,11 +34,5 @@ /* Do we have socketpair() ? */ #undef HAVE_SOCKETPAIR -/* Define if you have waitpid */ -#undef HAVE_WAITPID - -/* Define if you have wait4 */ -#undef HAVE_WAIT4 - #endif -- GitLab