Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/archival/libunarchive/open_transformer.c

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

revision 984 by niro, Sun May 30 11:32:42 2010 UTC revision 1123 by niro, Wed Aug 18 21:56:57 2010 UTC
# Line 19  void FAST_FUNC open_transformer(int fd, Line 19  void FAST_FUNC open_transformer(int fd,
19   int pid;   int pid;
20    
21   xpiped_pair(fd_pipe);   xpiped_pair(fd_pipe);
22     pid = BB_MMU ? xfork() : xvfork();
 #if BB_MMU  
  pid = fork();  
  if (pid == -1)  
  bb_perror_msg_and_die("vfork" + 1);  
 #else  
  pid = vfork();  
  if (pid == -1)  
  bb_perror_msg_and_die("vfork");  
 #endif  
   
23   if (pid == 0) {   if (pid == 0) {
24   /* child process */   /* Child */
25   close(fd_pipe.rd); /* we don't want to read from the parent */   close(fd_pipe.rd); /* we don't want to read from the parent */
26   // FIXME: error check?   // FIXME: error check?
27  #if BB_MMU  #if BB_MMU

Legend:
Removed from v.984  
changed lines
  Added in v.1123