test/install-mh/test-version-check was skipped due to timeout, but it
took a lot less than the thirty-second timeout to run. Add start time
and the time now to the diagnostic, and select(2)'s return value.
main(int argc, char *argv[])
{
int master_in, master_out, slave, cc, status;
main(int argc, char *argv[])
{
int master_in, master_out, slave, cc, status;
const char *slavename;
pid_t child;
unsigned char readbuf[1024];
const char *slavename;
pid_t child;
unsigned char readbuf[1024];
- if (time(NULL) >= starttime + COMMAND_TIMEOUT) {
- fprintf(stderr, "Command execution timed out\n");
+ now = time(NULL);
+ if (now >= starttime + COMMAND_TIMEOUT) {
+ fprintf(stderr, "Command execution timed out: %ld to %ld: %d\n",
+ starttime, now, cc);