* src/w32.c (w32_reexec_emacs): Fail if in -nw session.
* src/emacs.c (Fkill_emacs): Fix a typo.
if (initial_argc < 1)
error ("No command line arguments known; unable to re-execute Emacs");
#ifdef WINDOWSNT
- if (w32_reexec_emacs (initial_cmdline, initial_wd) < 1)
+ if (w32_reexec_emacs (initial_cmdline, initial_wd) < 0)
#else
if (execvp (*initial_argv, initial_argv) < 1)
#endif
int
w32_reexec_emacs (char *cmd_line, const char *wdir)
{
+ if (inhibit_window_system)
+ {
+ errno = ENOSYS;
+ return -1; /* FIXME! */
+ }
+
STARTUPINFO si;
SECURITY_ATTRIBUTES sec_attrs;
BOOL status;