--- SVN-Latest/src/netserver.c Sat Jul 26 20:47:44 2008 +++ netserver.c Thu Aug 14 15:39:34 2008 @@ -225,7 +225,7 @@ if (!debug) { fclose(where); -#if !defined(WIN32) && !defined(MPE) && !defined(__VMS) +#if !defined(WIN32) && !defined(MPE) && !defined(__VMS) && !defined(MSDOS) /* For Unix: reopen the debug write file descriptor to "/dev/null" */ /* and redirect stdout to it. */ fflush (stdout); @@ -245,7 +245,7 @@ perror ("netserver: duplicate /dev/null write file descr. to stdout"); exit (1); } -#endif /* !WIN32 !MPE !__VMS */ +#endif /* !WIN32 !MPE !__VMS !MSDOS */ } break; @@ -496,10 +496,10 @@ int error; int not_listening; -#if !defined(WIN32) && !defined(MPE) && !defined(__VMS) +#if !defined(WIN32) && !defined(MPE) && !defined(__VMS) && !defined(MSDOS) FILE *rd_null_fp; /* Used to redirect from "/dev/null". */ FILE *wr_null_fp; /* Used to redirect to "/dev/null". */ -#endif /* !WIN32 !MPE !__VMS */ +#endif /* !WIN32 !MPE !__VMS !MDOS */ if (debug) { fprintf(stderr, @@ -614,7 +614,7 @@ setpgrp(); */ -#if !defined(WIN32) && !defined(MPE) && !defined(__VMS) && !defined(VMWARE_UW) +#if !defined(WIN32) && !defined(MPE) && !defined(__VMS) && !defined(VMWARE_UW) && !defined(MSDOS) /* Flush the standard I/O file descriptors before forking. */ fflush (stdin); fflush (stdout); @@ -689,11 +689,9 @@ #define SIGCLD SIGCHLD #endif /* SIGCLD */ -#ifndef MSDOS signal(SIGCLD, SIG_IGN); -#endif -#endif /* !WIN32 !MPE !__VMS */ +#endif /* !WIN32 !MPE !__VMS !MSDOS */ for (;;) { @@ -704,7 +702,7 @@ printf("server_control: accept failed errno %d\n",errno); exit(1); } -#if defined(MPE) || defined(__VMS) || defined(VMWARE_UW) +#if defined(MPE) || defined(__VMS) || defined(VMWARE_UW) || defined(MSDOS) /* * Since we cannot fork this process , we cant fire any threads * as they all share the same global data . So we better allow @@ -773,9 +771,7 @@ free(cmdline); } #else -#ifndef MSDOS signal(SIGCLD, SIG_IGN); -#endif #if defined(HAVE_FORK) switch (fork()) #else @@ -808,16 +804,16 @@ #endif /* DONT_WAIT */ break; } -#endif /* !WIN32 !MPE !__VMS */ +#endif /* !WIN32 !MPE !__VMS !MSDOS */ } /*for*/ -#if !defined(WIN32) && !defined(MPE) && !defined(__VMS) && !defined(VMWARE_UW) +#if !defined(WIN32) && !defined(MPE) && !defined(__VMS) && !defined(VMWARE_UW) && !defined(MSDOS) break; /*case 0*/ default: exit (0); } -#endif /* !WIN32 !MPE !__VMS */ +#endif /* !WIN32 !MPE !__VMS !MSDOS */ } #ifdef WIN32 @@ -905,6 +901,9 @@ case 'd': /* we want to set the debug file name sometime */ debug++; +#ifdef MSDOS + dbug_init(); +#endif break; case 'L': not_inetd = 1;