Dmitry F Gurevitch writes: > Hi! > > I tried to compile this product (1.4.3) under Intel Solaris 8. > > 1. Failing while configure script execution in waitlib... > > This is a bug in configure.in in AC_TRY_COMPILE macro. More correct is: > > AC_TRY_COMPILE( [ > #include <signal.h> > > extern int sighold(int); > > ],[ > > int i=sighold(0); > ],[ac_cv_func_sighold=yes > AC_DEFINE_UNQUOTED(HAVE_SIGHOLD)],) > > So, sighold function does exist, but not correctly checked.
No, this misdeclaration is done on purpose. If sighold is prototyped, then the compilation will fail. If sighold is not prototyped, the compilation will succeed. > 2. I think, that some bug in waitlib.c in wait_reap(...) function. > > Why "wait3" calls from "while" loop, but "wait" only from "if" statement? Because the original System V implementation of SIG_CHLD restores the signal to SIG_DFL, before calling the signal handler. When the signal handler for SIG_CHLD is restored, the signal handler gets called again. That was, at least the original implementation. > I was changed > > if ((p=wait(&dummy)) > 0) > > to > > while ((p=wait(&dummy)) > 0) > > and checking for wait function was passed successfuly. > > Correct me please, if I'm wrong ;-) I'll probably want to make this as a separate configure test. -- Sam _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
