[BACK]Return to xargs.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / xargs

Diff for /src/usr.bin/xargs/xargs.c between version 1.23 and 1.24

version 1.23, 2005/09/26 20:32:04 version 1.24, 2005/11/01 04:52:59
Line 539 
Line 539 
                         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++;
Line 566 
Line 566 
                         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) {
Line 609 
Line 609 
                 (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);

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24