Commits

Anonymous committed f697c9b

Formerly main.c.~36~

Comments (0)

Files changed (1)

 
   /* Figure out where we are.  */
 
-#ifdef	USG
-  /* In some System V's, `getcwd' spawns a child running /bin/pwd.  */
-  push_signals_blocked_p (1);
-#endif
   if (getwd (current_directory) == 0)
     {
 #ifdef	USG
 #endif
       current_directory[0] = '\0';
     }
-#ifdef	USG
-  pop_signals_blocked_p ();
-#endif
 
   /* Read in variables from the environment.  It is important that this be
      done before `MAKE' and `MAKEOVERRIDES' are figured out so their
 
   if (!dying)
     {
+      int err;
+
       dying = 1;
 
       if (print_version_flag && !printed_version)
 	print_version ();
 
       /* Wait for children to die.  */
-      wait_for_children (0, status != 0);
+      for (err = status != 0; job_slots_used > 0; err = 0)
+	reap_children (0, err);
 
       /* Remove the intermediate files.  */
-
       remove_intermediates (0);
 
       if (print_directory_flag)
   else
     printf ("%s[%u]: %s ", program, makelevel, message);
 
-#ifdef	USG
-  /* In some System V's, `getcwd' spawns a child running /bin/pwd.  */
-  push_signals_blocked_p (1);
-#endif
   if (getwd (pwdbuf) == 0)
     {
 #ifdef	USG
     }
   else
     printf ("directory `%s'\n", pwdbuf);
-#ifdef	USG
-  pop_signals_blocked_p ();
-#endif
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.