diff options
| author | Lars Ingebrigtsen | 2022-04-17 15:00:00 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-17 15:00:00 +0200 |
| commit | b38c3fe8632ec0ee4f180dae2938959bd8b4c46e (patch) | |
| tree | 87bb04f3f7fcbd844556c9cebe0a4ba2eb39013b /src | |
| parent | 38c2a4588295a910b38736f0bfcc1cc5e5624520 (diff) | |
| download | emacs-b38c3fe8632ec0ee4f180dae2938959bd8b4c46e.tar.gz emacs-b38c3fe8632ec0ee4f180dae2938959bd8b4c46e.zip | |
Check whether we can restart in Fkill_emacs
* src/emacs.c (Fkill_emacs): Report an error if we can't restart.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c index 50b1628d207..173e8e8923d 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -2807,7 +2807,8 @@ killed. */ | |||
| 2807 | 2807 | ||
| 2808 | if (!NILP (restart)) | 2808 | if (!NILP (restart)) |
| 2809 | { | 2809 | { |
| 2810 | execvp (*initial_argv, initial_argv); | 2810 | if (execvp (*initial_argv, initial_argv) < 1) |
| 2811 | error ("Unable to re-execute Emacs"); | ||
| 2811 | } | 2812 | } |
| 2812 | 2813 | ||
| 2813 | if (FIXNUMP (arg)) | 2814 | if (FIXNUMP (arg)) |