/[man-db]/man-db/lib/pipeline.c
ViewVC logotype

Diff of /man-db/lib/pipeline.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by cjwatson, Sun Aug 3 19:51:38 2003 UTC revision 1.7 by cjwatson, Sun Aug 3 20:08:49 2003 UTC
# Line 62  command *command_new (const char *name) Line 62  command *command_new (const char *name)
62          cmd->argc = 0;          cmd->argc = 0;
63          cmd->argv_max = 4;          cmd->argv_max = 4;
64          cmd->argv = xmalloc (cmd->argv_max * sizeof *cmd->argv);          cmd->argv = xmalloc (cmd->argv_max * sizeof *cmd->argv);
65            cmd->nice = 0;
66    
67          /* argv[0] is the basename of the command name. */          /* argv[0] is the basename of the command name. */
68          name_copy = xstrdup (name);          name_copy = xstrdup (name);
# Line 448  void pipeline_start (pipeline *p) Line 449  void pipeline_start (pipeline *p)
449                          if (p->infd != -1)                          if (p->infd != -1)
450                                  close (p->infd);                                  close (p->infd);
451    
452                            if (p->commands[i]->nice)
453                                    nice (p->commands[i]->nice);
454    
455                          execvp (p->commands[i]->name, p->commands[i]->argv);                          execvp (p->commands[i]->name, p->commands[i]->argv);
456                          error (EXEC_FAILED_EXIT_STATUS, errno,                          error (EXEC_FAILED_EXIT_STATUS, errno,
457                                 _("couldn't exec %s"), p->commands[i]->name);                                 _("couldn't exec %s"), p->commands[i]->name);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26