Changeset 758 in kBuild for trunk/src/gmake/kmkbuiltin/install.c
- Timestamp:
- Jan 13, 2007 1:36:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/kmkbuiltin/install.c
r557 r758 185 185 return errx(EX_USAGE, "%s: invalid flag", flags); 186 186 iflags |= SETFLAGS; 187 #else 187 #else 188 188 (void)flags; 189 189 #endif … … 864 864 const char *stripbin; 865 865 int serrno, status; 866 867 switch (fork()) { 866 pid_t pid; 867 868 pid = fork(); 869 switch (pid) { 868 870 case -1: 869 871 serrno = errno; … … 878 880 err(EX_OSERR, "exec(%s)", stripbin); 879 881 default: 880 if (wait (&status) == -1 || status) {882 if (waitpid(pid, &status, 0) == -1 || status) { 881 883 serrno = errno; 882 884 (void)unlink(to_name); 883 885 errno = serrno; 884 err(EX_SOFTWARE, "wait ");886 err(EX_SOFTWARE, "waitpid"); 885 887 /* NOTREACHED */ 886 888 }
Note:
See TracChangeset
for help on using the changeset viewer.