I was just bitten by this bug as well, patched it, then found this bug report. For reference, this is the patch I'm using locally, using the documented instruction in wait(2) to only call WEXITSTATUS() if WIFEXITED() is true. Please count this as another request to put a warning in the manpage until it is resolved. Thanks.
-Drake --- src/misc/timeout.c.orig 2001-09-09 14:46:10.000000000 -0700 +++ src/misc/timeout.c 2007-09-15 07:36:41.000000000 -0700 @@ -34,6 +34,7 @@ #include <stdlib.h> #include <unistd.h> #include <stdio.h> +#include <sys/wait.h> extern int optind; @@ -103,6 +104,6 @@ alarm(time_to_run); while ((pid = wait(&status)) != -1 && pid != child_pid) /* void */ ; - return (pid == child_pid ? status : -1); + return (WIFEXITED(status) ? WEXITSTATUS(status) : -1); } } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]