Commit 29b89fe0 authored by Richard M. Stallman's avatar Richard M. Stallman

(main) [MSDOS]: Call init_environment. Set file types to

binary for all files.  Call init_dosfns.
(fatal_error_signal) [MSDOS]: Uncomment sigblock.
parent 128ecc89
......@@ -150,7 +150,9 @@ fatal_error_signal (sig)
Remember that since we're in a signal handler, the signal we're
going to send is probably blocked, so we have to unblock it if we
want to really receive it. */
#ifndef MSDOS
sigunblock (sigmask (fatal_error_code));
kill (getpid (), fatal_error_code);
#endif /* not VMS */
......@@ -367,6 +369,15 @@ main (argc, argv, envp)
#endif /* not SYSTEM_MALLOC */
#ifdef MSDOS
/* We do all file input/output as binary files. When we need to translate
newlines, we do that manually. */
_fmode = O_BINARY;
(stdin)->_flag &= ~_IOTEXT;
(stdout)->_flag &= ~_IOTEXT;
(stderr)->_flag &= ~_IOTEXT;
#endif /* MSDOS */
if (emacs_priority)
nice (emacs_priority);
......@@ -512,6 +523,13 @@ main (argc, argv, envp)
init_eval ();
init_data ();
#ifdef MSDOS
/* Call early 'cause init_environment needs it. */
init_dosfns ();
/* Set defaults for several environment variables. */
if (initialized) init_environment (argc, argv, skip_args);
/* egetenv is a pretty low-level facility, which may get called in
many circumstances; it seems flimsy to put off initializing it
until calling init_callproc. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment