dnl ---------------
AC_CHECK_LIB(mkstemp,mkstemp)
AC_CHECK_FUNCS(waitpid sigaction sigprocmask sigblock sigsetmask \
- sighold sigrelse lstat uname tzset killpg mkstemp \
+ sighold sigrelse lstat uname tzset mkstemp \
getutent nl_langinfo mbtowc wcwidth)
dnl sigsetjmp may be a macro
#endif
/*
-** we should get this value from sysconf(_SC_NGROUPS_MAX)
-*/
-#ifndef NGROUPS_MAX
-# ifdef NGROUPS
-# define NGROUPS_MAX NGROUPS
-# else
-# define NGROUPS_MAX 16
-# endif
-#endif
-
-/*
** we should be getting this value from sysconf(_SC_OPEN_MAX)
*/
#ifndef OPEN_MAX
#include <signal.h>
-#ifdef HAVE_KILLPG
-# define KILLPG(pgrp,sig) killpg(pgrp,sig);
-#else
-# define KILLPG(pgrp,sig) kill((-pgrp),sig);
-#endif
-
/*
** If your stat macros are broken,
** we will just undefine them.
** Ruthlessly kill the child and anything
** else in its process group.
*/
- KILLPG(child_id, SIGKILL);
+ kill(-child_id, SIGKILL);
if (verbose)
verbose_printf(", timed-out; terminated\n");
return -1;