Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/shell/hush.c

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

revision 1126 by niro, Wed Aug 18 21:56:57 2010 UTC revision 1127 by niro, Wed Aug 18 22:00:50 2010 UTC
# Line 3901  static void insert_bg_job(struct pipe *p Line 3901  static void insert_bg_job(struct pipe *p
3901    
3902   if (G_interactive_fd)   if (G_interactive_fd)
3903   printf("[%d] %d %s\n", job->jobid, job->cmds[0].pid, job->cmdtext);   printf("[%d] %d %s\n", job->jobid, job->cmds[0].pid, job->cmdtext);
  /* Last command's pid goes to $! */  
  G.last_bg_pid = job->cmds[job->num_cmds - 1].pid;  
3904   G.last_jobid = job->jobid;   G.last_jobid = job->jobid;
3905  }  }
3906    
# Line 4825  static int run_list(struct pipe *pi) Line 4823  static int run_list(struct pipe *pi)
4823   if (G.run_list_level == 1)   if (G.run_list_level == 1)
4824   insert_bg_job(pi);   insert_bg_job(pi);
4825  #endif  #endif
4826     /* Last command's pid goes to $! */
4827     G.last_bg_pid = pi->cmds[pi->num_cmds - 1].pid;
4828   G.last_exitcode = rcode = EXIT_SUCCESS;   G.last_exitcode = rcode = EXIT_SUCCESS;
4829   debug_printf_exec(": cmd&: exitcode EXIT_SUCCESS\n");   debug_printf_exec(": cmd&: exitcode EXIT_SUCCESS\n");
4830   } else {   } else {

Legend:
Removed from v.1126  
changed lines
  Added in v.1127