version 1.23, 2005/09/26 20:32:04 |
version 1.24, 2005/11/01 04:52:59 |
|
|
close(fd); |
close(fd); |
} |
} |
execvp(argv[0], argv); |
execvp(argv[0], argv); |
warn("%s", argv[0]); |
warn("%s", argv[0]); |
_exit(errno == ENOENT ? 127 : 126); |
_exit(errno == ENOENT ? 127 : 126); |
} |
} |
curprocs++; |
curprocs++; |
|
|
if (WEXITSTATUS(status) == 255) { |
if (WEXITSTATUS(status) == 255) { |
warnx("%s exited with status 255", name); |
warnx("%s exited with status 255", name); |
exit(124); |
exit(124); |
} else if (WEXITSTATUS(status) == 127 || |
} else if (WEXITSTATUS(status) == 127 || |
WEXITSTATUS(status) == 126) { |
WEXITSTATUS(status) == 126) { |
exit(WEXITSTATUS(status)); |
exit(WEXITSTATUS(status)); |
} else if (WEXITSTATUS(status) != 0) { |
} else if (WEXITSTATUS(status) != 0) { |
|
|
(void)fclose(ttyfp); |
(void)fclose(ttyfp); |
return (0); |
return (0); |
} |
} |
response[rsize - 1] = '\0'; |
response[rsize - 1] = '\0'; |
match = regexec(&cre, response, 0, NULL, 0); |
match = regexec(&cre, response, 0, NULL, 0); |
(void)fclose(ttyfp); |
(void)fclose(ttyfp); |
regfree(&cre); |
regfree(&cre); |