; Minor fix for 'restart-emacs' on MS-Windows
* src/w32.c (w32_reexec_emacs): Fail if in -nw session. * src/emacs.c (Fkill_emacs): Fix a typo.
This commit is contained in:
parent
988325f95a
commit
dd451a37dd
2 changed files with 7 additions and 1 deletions
|
@ -2820,7 +2820,7 @@ killed. */
|
|||
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
|
||||
|
|
|
@ -10623,6 +10623,12 @@ realpath (const char *file_name, char *resolved_name)
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue