+1999-04-26 Paul D. Smith <psmith@gnu.org>
+
+ * main.c (main): Reset read_makefiles to empty after processing so
+ we get the right error message.
+
1999-04-25 Paul D. Smith <psmith@gnu.org>
* make.texinfo: Updates to @dircategory and @direntry suggested by
Karl Berry <karl@cs.umb.edu>.
+1999-04-23 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
+ turning off dos_command_running, so child's signals produce the
+ right effect.
+
+ * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
+ instead of 1.
+
1999-04-18 Eli Zaretskii <eliz@is.elta.co.il>
* configh.dos.template: Update to recognize that version 2.02 of
return;
}
remove_intermediates (1);
- exit (1);
+ exit (EXIT_FAILURE);
#else /* not __MSDOS__ */
#ifdef _AMIGA
remove_intermediates (1);
variable_expand (line)
char *line;
{
- return variable_expand_string(NULL, line, -1);
+ return variable_expand_string(NULL, line, (long)-1);
}
\f
/* Expand an argument for an expansion function.
dos_command_running = 1;
proc_return = system (cmdline);
- dos_command_running = 0;
environ = parent_environ;
execute_by_shell = 0; /* for the next time */
}
{
dos_command_running = 1;
proc_return = spawnvpe (P_WAIT, argv[0], argv, child->environment);
- dos_command_running = 0;
}
+ /* Need to unblock signals before turning off
+ dos_command_running, so that child's signals
+ will be treated as such (see fatal_error_signal). */
+ unblock_sigs ();
+ dos_command_running = 0;
+
+ /* If the child got a signal, dos_status has its
+ high 8 bits set, so be careful not to alter them. */
if (proc_return == -1)
dos_status |= 0xff;
else
else
{
/* A normal makefile. We must die later. */
- error (NILF, "Makefile `%s' was not found", dep_name (d));
+ error (NILF, "Makefile `%s' was not found",
+ dep_name (d));
any_failed = 1;
}
}
+ /* Reset this to empty so we get the right error message below. */
+ read_makefiles = 0;
if (any_remade)
goto re_exec;