diff src/sysdep.c @ 108038:763c361da2e2

Merge from mainline.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Thu, 01 Apr 2010 21:55:28 +0000
parents 84b961690802
children 912a8c0c9a8a
line wrap: on
line diff
--- a/src/sysdep.c	Thu Apr 01 10:55:01 2010 +0000
+++ b/src/sysdep.c	Thu Apr 01 21:55:28 2010 +0000
@@ -90,11 +90,9 @@
 #include "msdos.h"
 #include <sys/param.h>
 
-#if __DJGPP__ > 1
 extern int etext;
 extern unsigned start __asm__ ("start");
 #endif
-#endif
 
 #ifndef USE_CRT_DLL
 #ifndef errno
@@ -462,13 +460,7 @@
 #endif /* not POSIX_SIGNALS */
 #endif /* not BSD_SYSTEM, and not HPUX version >= 6 */
 #else /* not subprocesses */
-#if __DJGPP__ > 1
       break;
-#else /* not __DJGPP__ > 1 */
-      if (kill (pid, 0) < 0)
-	break;
-      wait (0);
-#endif /* not __DJGPP__ > 1*/
 #endif /* not subprocesses */
     }
 }
@@ -672,10 +664,8 @@
 
 #ifdef DOS_NT
   pid = 0;
-#if __DJGPP__ > 1
   save_signal_handlers (saved_handlers);
   synch_process_alive = 1;
-#endif /* __DJGPP__ > 1 */
 #else
   pid = vfork ();
   if (pid == -1)
@@ -747,7 +737,7 @@
     }
 
   /* Do this now if we did not do it before.  */
-#if !defined (MSDOS) || __DJGPP__ == 1
+#ifndef MSDOS
   save_signal_handlers (saved_handlers);
   synch_process_alive = 1;
 #endif