diff options
| author | Dan Nicolaescu | 2008-12-18 08:48:26 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-12-18 08:48:26 +0000 |
| commit | fd95644b937fb3e6e1285b21c2fc1ab901199e87 (patch) | |
| tree | d505389ad56d77f9b1abaabd4dca23e69d8951b3 /src | |
| parent | 059f0a612aea0c4f485b6d316f6bf51375cf52d0 (diff) | |
| download | emacs-fd95644b937fb3e6e1285b21c2fc1ab901199e87.tar.gz emacs-fd95644b937fb3e6e1285b21c2fc1ab901199e87.zip | |
* emacs.c (main): Print and error and exit when no data is read
from the pipe.
* startup.el (command-line): Do not mention the server name in
case the user has not mentioned it, print a more explicit message.
* emacsclient.c (start_daemon_and_retry_set_socket): Improve error
checking.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/emacs.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8177bea8a45..ccda62889f7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * emacs.c (main): Print and error and exit when no data is read | ||
| 4 | from the pipe. | ||
| 5 | |||
| 1 | 2008-12-17 Jason Rumney <jasonr@gnu.org> | 6 | 2008-12-17 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * w32font.c (w32font_has_char): Always return -1. | 8 | * w32font.c (w32font_has_char): Always return -1. |
diff --git a/src/emacs.c b/src/emacs.c index bd733da303f..4ebf136063a 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1129,6 +1129,11 @@ main (int argc, char **argv) | |||
| 1129 | fprintf (stderr, "Error reading status from child\n"); | 1129 | fprintf (stderr, "Error reading status from child\n"); |
| 1130 | exit (1); | 1130 | exit (1); |
| 1131 | } | 1131 | } |
| 1132 | else if (retval == 0) | ||
| 1133 | { | ||
| 1134 | fprintf (stderr, "Error: server did not start correctly\n"); | ||
| 1135 | exit (1); | ||
| 1136 | } | ||
| 1132 | 1137 | ||
| 1133 | close (daemon_pipe[0]); | 1138 | close (daemon_pipe[0]); |
| 1134 | exit (0); | 1139 | exit (0); |